<?xml version="1.0"?>
<ownershipDocument>

    <schemaVersion>X0607</schemaVersion>

    <documentType>3</documentType>

    <periodOfReport>2026-08-17</periodOfReport>

    <noSecuritiesOwned>0</noSecuritiesOwned>

    <issuer>
        <issuerCik>0000845877</issuerCik>
        <issuerName>FEDERAL AGRICULTURAL MORTGAGE CORP</issuerName>
        <issuerTradingSymbol>AGM</issuerTradingSymbol>
        <issuerForeignTradingSymbol></issuerForeignTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001633936</rptOwnerCik>
            <rptOwnerName>Maines Robert J</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerNonUSAddressFlag>false</rptOwnerNonUSAddressFlag>
            <rptOwnerStreet1>C/O FARMER MAC</rptOwnerStreet1>
            <rptOwnerStreet2>2100 PENNSYLVANIA AVE., NW, SUITE 450N</rptOwnerStreet2>
            <rptOwnerCity>WASHINGTON</rptOwnerCity>
            <rptOwnerState>DC</rptOwnerState>
            <rptOwnerZipCode>20037</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>1</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle>EVP - Chief Operations Officer</officerTitle>
            <otherText></otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <nonDerivativeTable>
        <nonDerivativeHolding>
            <securityTitle>
                <value>Class C Non-Voting Common Stock</value>
            </securityTitle>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>3966</value>
                    <footnoteId id="F1"/>
                    <footnoteId id="F2"/>
                    <footnoteId id="F3"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeHolding>
    </nonDerivativeTable>

    <derivativeTable>
        <derivativeHolding>
            <securityTitle>
                <value>Stock Appreciation Right</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <value>88.68</value>
            </conversionOrExercisePrice>
            <exerciseDate>
                <footnoteId id="F4"/>
            </exerciseDate>
            <expirationDate>
                <value>2031-03-02</value>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>Class C Non-Voting Common Stock</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>1248</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeHolding>
        <derivativeHolding>
            <securityTitle>
                <value>Stock Appreciation Right</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <value>120.38</value>
            </conversionOrExercisePrice>
            <exerciseDate>
                <footnoteId id="F5"/>
            </exerciseDate>
            <expirationDate>
                <value>2032-03-09</value>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>Class C Non-Voting Common Stock</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>753</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeHolding>
        <derivativeHolding>
            <securityTitle>
                <value>Stock Appreciation Right</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <value>135.20</value>
            </conversionOrExercisePrice>
            <exerciseDate>
                <footnoteId id="F6"/>
            </exerciseDate>
            <expirationDate>
                <value>2033-03-09</value>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>Class C Non-Voting Common Stock</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>843</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeHolding>
        <derivativeHolding>
            <securityTitle>
                <value>Stock Appreciation Right</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <value>198.54</value>
            </conversionOrExercisePrice>
            <exerciseDate>
                <footnoteId id="F7"/>
            </exerciseDate>
            <expirationDate>
                <value>2034-03-05</value>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>Class C Non-Voting Common Stock</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>759</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeHolding>
        <derivativeHolding>
            <securityTitle>
                <value>Stock Appreciation Right</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <value>202.01</value>
            </conversionOrExercisePrice>
            <exerciseDate>
                <footnoteId id="F8"/>
            </exerciseDate>
            <expirationDate>
                <value>2035-03-06</value>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>Class C Non-Voting Common Stock</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>729</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeHolding>
        <derivativeHolding>
            <securityTitle>
                <value>Stock Appreciation Right</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <value>162.15</value>
            </conversionOrExercisePrice>
            <exerciseDate>
                <footnoteId id="F9"/>
            </exerciseDate>
            <expirationDate>
                <value>2036-03-05</value>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>Class C Non-Voting Common Stock</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>1170</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeHolding>
    </derivativeTable>

    <footnotes>
        <footnote id="F1">Includes 1,765 unvested restricted stock units (&quot;RSUs&quot;) previously granted pursuant to the Federal Agricultural Mortgage Corporation (&quot;Farmer Mac&quot;) Amended and Restated 2008 Omnibus Incentive Plan (&quot;Plan&quot;). Mr. Maines was granted:  (i) 588 RSUs on March 5, 2026, which will vest in three equal annual installments of 196 RSUs on March 31, 2027, March 31, 2028, and March 31, 2029, respectively; (ii) 292 RSUs on March 6, 2025, of which 146 RSUs will vest on each of March 31, 2027, and March 31, 2028; and (iii) 149 RSUs on March 5, 2024, which will vest on March 31, 2027. Each RSU represents the contingent right to receive, upon vesting, one share of Farmer Mac's Class C Non-Voting Common Stock, if Mr. Maines remains employed by Farmer Mac on the applicable vesting date.</footnote>
        <footnote id="F2">In addition, Mr. Maines was granted a target number of 294 performance-based RSUs on March 5, 2026 under the Plan for no consideration. These RSUs will vest on March 31, 2029 if Farmer Mac achieves performance objectives related to cumulative core earnings before credit during the performance period of January 1, 2026 to December 31, 2028. Mr. Maines was granted a target number of 219 performance-based RSUs on March 6, 2025 under the Plan for no consideration. These RSUs will vest on March 31, 2028 if Farmer Mac achieves performance objectives related to cumulative core earnings before credit during the performance period of January 1, 2025 to December 31, 2027. Mr. Maines was granted a target number of 223 performance-based RSUs on March 5, 2024 under the Plan for no consideration. These RSUs will vest on March 31, 2027 if Farmer Mac achieves performance objectives related to cumulative core earnings before credit during the performance period of January 1, 2024 to December 31, 2026.</footnote>
        <footnote id="F3">All performance-based RSUs are subject to &quot;gatekeepers&quot; related to compliance with regulatory capital requirements and specified asset quality metrics, as set forth in the applicable award agreement. Any adjustments to the target award will be reported at the time of the actual determination of performance as compared to the applicable threshold. In no event, however, will the number of shares actually awarded upon vesting exceed 200% of the number of RSUs in the target award.</footnote>
        <footnote id="F4">This stock appreciation right was granted under the Plan on March 2, 2021 and is fully vested.</footnote>
        <footnote id="F5">This stock appreciation right was granted under the Plan on March 9, 2022 and is fully vested.</footnote>
        <footnote id="F6">This stock appreciation right was granted under the Plan on March 9, 2023 and is fully vested.</footnote>
        <footnote id="F7">This stock appreciation right was granted under the Plan on March 5, 2024 and vests in three annual installments. Two installments have vested, and the final installment, with respect to 253 shares, will vest and become exercisable on  March 31, 2027.</footnote>
        <footnote id="F8">This stock appreciation right was granted under the Plan on March 6, 2025 and vests in three equal annual installments of 243 shares each. The first installment became exercisable on March 31, 2026, and the second and third installments will become exercisable on March 31, 2027, and March 31, 2028, respectively.</footnote>
        <footnote id="F9">This stock appreciation right was granted under the Plan on March 5, 2026 and vests in three equal annual installments of 390 shares each. The installments will become exercisable on March 31, 2027, March 31, 2028, and March 31, 2029.</footnote>
    </footnotes>

    <remarks></remarks>

    <ownerSignature>
        <signatureName>Geraldine I. Hayhurst as attorney-in-fact for Rober J. Maines</signatureName>
        <signatureDate>2026-08-27</signatureDate>
    </ownerSignature>
</ownershipDocument>
