<?xml version="1.0" encoding="UTF-8"?>

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2024 Workiva-->
<!--r:8cdb58fd-4801-4927-8001-b7d32b49f943,g:f287e148-ef87-4472-bb01-3c8c361cfed7-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:agm="http://www.farmermac.com/20240331" xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:dtr-types1="http://www.xbrl.org/dtr/type/2020-01-21" xmlns:dtr-types="http://www.xbrl.org/dtr/type/2022-03-31" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.farmermac.com/20240331">
  <xs:import namespace="http://fasb.org/srt/2023" schemaLocation="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd"/>
  <xs:import namespace="http://fasb.org/us-gaap/2023" schemaLocation="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd"/>
  <xs:import namespace="http://www.w3.org/1999/xlink" schemaLocation="http://www.xbrl.org/2003/xlink-2003-12-31.xsd"/>
  <xs:import namespace="http://www.xbrl.org/2003/instance" schemaLocation="http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"/>
  <xs:import namespace="http://www.xbrl.org/2003/linkbase" schemaLocation="http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd"/>
  <xs:import namespace="http://www.xbrl.org/dtr/type/2020-01-21" schemaLocation="https://www.xbrl.org/dtr/type/2020-01-21/types.xsd"/>
  <xs:import namespace="http://www.xbrl.org/dtr/type/2022-03-31" schemaLocation="https://www.xbrl.org/dtr/type/2022-03-31/types.xsd"/>
  <xs:import namespace="http://xbrl.org/2005/xbrldt" schemaLocation="http://www.xbrl.org/2005/xbrldt-2005.xsd"/>
  <xs:import namespace="http://xbrl.sec.gov/dei/2023" schemaLocation="https://xbrl.sec.gov/dei/2023/dei-2023.xsd"/>
  <xs:import namespace="http://xbrl.sec.gov/ecd/2023" schemaLocation="https://xbrl.sec.gov/ecd/2023/ecd-2023.xsd"/>
  <xs:annotation>
    <xs:appinfo>
      <link:linkbaseRef xmlns:xlink="http://www.w3.org/1999/xlink" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="agm-20240331_pre.xml" xlink:role="http://www.xbrl.org/2003/role/presentationLinkbaseRef" xlink:type="simple"/>
      <link:linkbaseRef xmlns:xlink="http://www.w3.org/1999/xlink" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="agm-20240331_def.xml" xlink:role="http://www.xbrl.org/2003/role/definitionLinkbaseRef" xlink:type="simple"/>
      <link:linkbaseRef xmlns:xlink="http://www.w3.org/1999/xlink" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="agm-20240331_lab.xml" xlink:role="http://www.xbrl.org/2003/role/labelLinkbaseRef" xlink:type="simple"/>
      <link:linkbaseRef xmlns:xlink="http://www.w3.org/1999/xlink" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="agm-20240331_cal.xml" xlink:role="http://www.xbrl.org/2003/role/calculationLinkbaseRef" xlink:type="simple"/>
      <link:roleType id="COVERPAGE" roleURI="http://www.farmermac.com/role/COVERPAGE">
        <link:definition>0000001 - Document - COVER PAGE</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CONSOLIDATEDBALANCESHEETSunaudited" roleURI="http://www.farmermac.com/role/CONSOLIDATEDBALANCESHEETSunaudited">
        <link:definition>0000002 - Statement - CONSOLIDATED BALANCE SHEETS (unaudited)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CONSOLIDATEDBALANCESHEETSunauditedParenthetical" roleURI="http://www.farmermac.com/role/CONSOLIDATEDBALANCESHEETSunauditedParenthetical">
        <link:definition>0000003 - Statement - CONSOLIDATED BALANCE SHEETS (unaudited) (Parenthetical)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CONSOLIDATEDSTATEMENTSOFOPERATIONSunaudited" roleURI="http://www.farmermac.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONSunaudited">
        <link:definition>0000004 - Statement - CONSOLIDATED STATEMENTS OF OPERATIONS (unaudited)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMEunaudited" roleURI="http://www.farmermac.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMEunaudited">
        <link:definition>0000005 - Statement - CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (unaudited)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CONSOLIDATEDSTATEMENTSOFEQUITYunaudited" roleURI="http://www.farmermac.com/role/CONSOLIDATEDSTATEMENTSOFEQUITYunaudited">
        <link:definition>0000006 - Statement - CONSOLIDATED STATEMENTS OF EQUITY (unaudited)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CONSOLIDATEDSTATEMENTSOFEQUITYunauditedParenthetical" roleURI="http://www.farmermac.com/role/CONSOLIDATEDSTATEMENTSOFEQUITYunauditedParenthetical">
        <link:definition>0000007 - Statement - CONSOLIDATED STATEMENTS OF EQUITY (unaudited) (Parenthetical)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CONSOLIDATEDSTATEMENTSOFCASHFLOWSunaudited" roleURI="http://www.farmermac.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWSunaudited">
        <link:definition>0000008 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS (unaudited)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIES" roleURI="http://www.farmermac.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIES">
        <link:definition>0000009 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="INVESTMENTSECURITIES" roleURI="http://www.farmermac.com/role/INVESTMENTSECURITIES">
        <link:definition>0000010 - Disclosure - INVESTMENT SECURITIES</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FARMERMACGUARANTEEDSECURITIESANDUSDASECURITIES" roleURI="http://www.farmermac.com/role/FARMERMACGUARANTEEDSECURITIESANDUSDASECURITIES">
        <link:definition>0000011 - Disclosure - FARMER MAC GUARANTEED SECURITIES AND USDA SECURITIES</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FINANCIALDERIVATIVES" roleURI="http://www.farmermac.com/role/FINANCIALDERIVATIVES">
        <link:definition>0000012 - Disclosure - FINANCIAL DERIVATIVES</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LOANS" roleURI="http://www.farmermac.com/role/LOANS">
        <link:definition>0000013 - Disclosure - LOANS</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="GUARANTEESANDCOMMITMENTS" roleURI="http://www.farmermac.com/role/GUARANTEESANDCOMMITMENTS">
        <link:definition>0000014 - Disclosure - GUARANTEES AND COMMITMENTS</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="NOTESPAYABLE" roleURI="http://www.farmermac.com/role/NOTESPAYABLE">
        <link:definition>0000015 - Disclosure - NOTES PAYABLE</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="EQUITY" roleURI="http://www.farmermac.com/role/EQUITY">
        <link:definition>0000016 - Disclosure - EQUITY</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FAIRVALUEDISCLOSURES" roleURI="http://www.farmermac.com/role/FAIRVALUEDISCLOSURES">
        <link:definition>0000017 - Disclosure - FAIR VALUE DISCLOSURES</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BUSINESSSEGMENTREPORTING" roleURI="http://www.farmermac.com/role/BUSINESSSEGMENTREPORTING">
        <link:definition>0000018 - Disclosure - BUSINESS SEGMENT REPORTING</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies" roleURI="http://www.farmermac.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies">
        <link:definition>9954471 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Policies)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESTables" roleURI="http://www.farmermac.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESTables">
        <link:definition>9954472 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="INVESTMENTSECURITIESTables" roleURI="http://www.farmermac.com/role/INVESTMENTSECURITIESTables">
        <link:definition>9954473 - Disclosure - INVESTMENT SECURITIES (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FARMERMACGUARANTEEDSECURITIESANDUSDASECURITIESTables" roleURI="http://www.farmermac.com/role/FARMERMACGUARANTEEDSECURITIESANDUSDASECURITIESTables">
        <link:definition>9954474 - Disclosure - FARMER MAC GUARANTEED SECURITIES AND USDA SECURITIES (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FINANCIALDERIVATIVESTables" roleURI="http://www.farmermac.com/role/FINANCIALDERIVATIVESTables">
        <link:definition>9954475 - Disclosure - FINANCIAL DERIVATIVES (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LOANSTables" roleURI="http://www.farmermac.com/role/LOANSTables">
        <link:definition>9954476 - Disclosure - LOANS (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="GUARANTEESANDCOMMITMENTSTables" roleURI="http://www.farmermac.com/role/GUARANTEESANDCOMMITMENTSTables">
        <link:definition>9954477 - Disclosure - GUARANTEES AND COMMITMENTS (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="NOTESPAYABLETables" roleURI="http://www.farmermac.com/role/NOTESPAYABLETables">
        <link:definition>9954478 - Disclosure - NOTES PAYABLE (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FAIRVALUEDISCLOSURESTables" roleURI="http://www.farmermac.com/role/FAIRVALUEDISCLOSURESTables">
        <link:definition>9954479 - Disclosure - FAIR VALUE DISCLOSURES (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BUSINESSSEGMENTREPORTINGTables" roleURI="http://www.farmermac.com/role/BUSINESSSEGMENTREPORTINGTables">
        <link:definition>9954480 - Disclosure - BUSINESS SEGMENT REPORTING (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails" roleURI="http://www.farmermac.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESNarrativeDetails">
        <link:definition>9954481 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESConsolidationofVariableInterestEntitiesDetails" roleURI="http://www.farmermac.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESConsolidationofVariableInterestEntitiesDetails">
        <link:definition>9954482 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Consolidation of Variable Interest Entities (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESEarningsPerCommonShareDetails" roleURI="http://www.farmermac.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESEarningsPerCommonShareDetails">
        <link:definition>9954483 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Earnings Per Common Share (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESScheduleofAccumulatedOtherComprehensiveIncomeNetofTaxDetails" roleURI="http://www.farmermac.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESScheduleofAccumulatedOtherComprehensiveIncomeNetofTaxDetails">
        <link:definition>9954484 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Schedule of Accumulated Other Comprehensive Income, Net of Tax (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESScheduleofReclassificationoutofAccumulatedOtherComprehensiveIncomeDetails" roleURI="http://www.farmermac.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESScheduleofReclassificationoutofAccumulatedOtherComprehensiveIncomeDetails">
        <link:definition>9954485 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Schedule of Reclassification out of Accumulated Other Comprehensive Income (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="INVESTMENTSECURITIESScheduleofInvestmentSecuritiesDetails" roleURI="http://www.farmermac.com/role/INVESTMENTSECURITIESScheduleofInvestmentSecuritiesDetails">
        <link:definition>9954486 - Disclosure - INVESTMENT SECURITIES - Schedule of Investment Securities (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="INVESTMENTSECURITIESNarrativeDetails" roleURI="http://www.farmermac.com/role/INVESTMENTSECURITIESNarrativeDetails">
        <link:definition>9954487 - Disclosure - INVESTMENT SECURITIES - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="INVESTMENTSECURITIESUnrealizedLossPositionDetails" roleURI="http://www.farmermac.com/role/INVESTMENTSECURITIESUnrealizedLossPositionDetails">
        <link:definition>9954488 - Disclosure - INVESTMENT SECURITIES - Unrealized Loss Position (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="INVESTMENTSECURITIESDebtMaturitiesDetails" roleURI="http://www.farmermac.com/role/INVESTMENTSECURITIESDebtMaturitiesDetails">
        <link:definition>9954489 - Disclosure - INVESTMENT SECURITIES - Debt Maturities (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FARMERMACGUARANTEEDSECURITIESANDUSDASECURITIESScheduleofOnBalanceSheetSecuritiesDetails" roleURI="http://www.farmermac.com/role/FARMERMACGUARANTEEDSECURITIESANDUSDASECURITIESScheduleofOnBalanceSheetSecuritiesDetails">
        <link:definition>9954490 - Disclosure - FARMER MAC GUARANTEED SECURITIES AND USDA SECURITIES - Schedule of On-Balance Sheet Securities (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FARMERMACGUARANTEEDSECURITIESANDUSDASECURITIESNarrativeDetails" roleURI="http://www.farmermac.com/role/FARMERMACGUARANTEEDSECURITIESANDUSDASECURITIESNarrativeDetails">
        <link:definition>9954491 - Disclosure - FARMER MAC GUARANTEED SECURITIES AND USDA SECURITIES - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FARMERMACGUARANTEEDSECURITIESANDUSDASECURITIESUnrealizedLossPositionDetails" roleURI="http://www.farmermac.com/role/FARMERMACGUARANTEEDSECURITIESANDUSDASECURITIESUnrealizedLossPositionDetails">
        <link:definition>9954492 - Disclosure - FARMER MAC GUARANTEED SECURITIES AND USDA SECURITIES - Unrealized Loss Position (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FARMERMACGUARANTEEDSECURITIESANDUSDASECURITIESScheduleofAvailableforSaleSecuritiesDetails" roleURI="http://www.farmermac.com/role/FARMERMACGUARANTEEDSECURITIESANDUSDASECURITIESScheduleofAvailableforSaleSecuritiesDetails">
        <link:definition>9954493 - Disclosure - FARMER MAC GUARANTEED SECURITIES AND USDA SECURITIES - Schedule of Available-for-Sale Securities (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FARMERMACGUARANTEEDSECURITIESANDUSDASECURITIESScheduleofHeldtoMaturitySecuritiesDetails" roleURI="http://www.farmermac.com/role/FARMERMACGUARANTEEDSECURITIESANDUSDASECURITIESScheduleofHeldtoMaturitySecuritiesDetails">
        <link:definition>9954494 - Disclosure - FARMER MAC GUARANTEED SECURITIES AND USDA SECURITIES - Schedule of Held-to-Maturity Securities (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FINANCIALDERIVATIVESNarrativeDetails" roleURI="http://www.farmermac.com/role/FINANCIALDERIVATIVESNarrativeDetails">
        <link:definition>9954495 - Disclosure - FINANCIAL DERIVATIVES - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FINANCIALDERIVATIVESScheduleofDerivativeInstrumentsinStatementofFinancialPositionDetails" roleURI="http://www.farmermac.com/role/FINANCIALDERIVATIVESScheduleofDerivativeInstrumentsinStatementofFinancialPositionDetails">
        <link:definition>9954496 - Disclosure - FINANCIAL DERIVATIVES - Schedule of Derivative Instruments in Statement of Financial Position (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FINANCIALDERIVATIVESScheduleofNetIncomeExpenseRecognizedDetails" roleURI="http://www.farmermac.com/role/FINANCIALDERIVATIVESScheduleofNetIncomeExpenseRecognizedDetails">
        <link:definition>9954497 - Disclosure - FINANCIAL DERIVATIVES - Schedule of Net Income/(Expense) Recognized (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FINANCIALDERIVATIVESHedgedItemsinFairValueHedgingRelationshipsDetails" roleURI="http://www.farmermac.com/role/FINANCIALDERIVATIVESHedgedItemsinFairValueHedgingRelationshipsDetails">
        <link:definition>9954498 - Disclosure - FINANCIAL DERIVATIVES - Hedged Items in Fair Value Hedging Relationships (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FINANCIALDERIVATIVESScheduleofFairValueofFinancialAssetsandLiabilitiesDetails" roleURI="http://www.farmermac.com/role/FINANCIALDERIVATIVESScheduleofFairValueofFinancialAssetsandLiabilitiesDetails">
        <link:definition>9954499 - Disclosure - FINANCIAL DERIVATIVES - Schedule of Fair Value of Financial Assets and Liabilities (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LOANSNarrativeDetails" roleURI="http://www.farmermac.com/role/LOANSNarrativeDetails">
        <link:definition>9954500 - Disclosure - LOANS - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LOANSScheduleofCompositionofLoanBalancesDetails" roleURI="http://www.farmermac.com/role/LOANSScheduleofCompositionofLoanBalancesDetails">
        <link:definition>9954501 - Disclosure - LOANS - Schedule of Composition of Loan Balances (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LOANSAllowanceforLossesDetails" roleURI="http://www.farmermac.com/role/LOANSAllowanceforLossesDetails">
        <link:definition>9954502 - Disclosure - LOANS - Allowance for Losses (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LOANSChangesintheAllowanceforLossesDetails" roleURI="http://www.farmermac.com/role/LOANSChangesintheAllowanceforLossesDetails">
        <link:definition>9954503 - Disclosure - LOANS - Changes in the Allowance for Losses (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LOANSUnpaidPrincipalBalancesbyDelinquencyStatusDetails" roleURI="http://www.farmermac.com/role/LOANSUnpaidPrincipalBalancesbyDelinquencyStatusDetails">
        <link:definition>9954504 - Disclosure - LOANS - Unpaid Principal Balances by Delinquency Status (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LOANSScheduleofFinancingReceivablesCreditQualityIndicatorsDetails" roleURI="http://www.farmermac.com/role/LOANSScheduleofFinancingReceivablesCreditQualityIndicatorsDetails">
        <link:definition>9954505 - Disclosure - LOANS - Schedule of Financing Receivables Credit Quality Indicators (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="GUARANTEESANDCOMMITMENTSOffBalanceSheetGuaranteedSecuritiesDetails" roleURI="http://www.farmermac.com/role/GUARANTEESANDCOMMITMENTSOffBalanceSheetGuaranteedSecuritiesDetails">
        <link:definition>9954506 - Disclosure - GUARANTEES AND COMMITMENTS - Off-Balance Sheet Guaranteed Securities (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="GUARANTEESANDCOMMITMENTSSignificantCashFlowsReceivedFromandPaidtoTrustsDetails" roleURI="http://www.farmermac.com/role/GUARANTEESANDCOMMITMENTSSignificantCashFlowsReceivedFromandPaidtoTrustsDetails">
        <link:definition>9954507 - Disclosure - GUARANTEES AND COMMITMENTS - Significant Cash Flows Received From and Paid to Trusts (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="GUARANTEESANDCOMMITMENTSScheduleofUnderlyingOffBalanceSheetGuaranteedSecuritiesDetails" roleURI="http://www.farmermac.com/role/GUARANTEESANDCOMMITMENTSScheduleofUnderlyingOffBalanceSheetGuaranteedSecuritiesDetails">
        <link:definition>9954508 - Disclosure - GUARANTEES AND COMMITMENTS - Schedule of Underlying Off-Balance Sheet Guaranteed Securities (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="GUARANTEESANDCOMMITMENTSScheduleofLongTermStandbyPurchaseCommitmentsDetails" roleURI="http://www.farmermac.com/role/GUARANTEESANDCOMMITMENTSScheduleofLongTermStandbyPurchaseCommitmentsDetails">
        <link:definition>9954509 - Disclosure - GUARANTEES AND COMMITMENTS - Schedule of Long-Term Standby Purchase Commitments (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="GUARANTEESANDCOMMITMENTSReserveForLossesDetails" roleURI="http://www.farmermac.com/role/GUARANTEESANDCOMMITMENTSReserveForLossesDetails">
        <link:definition>9954510 - Disclosure - GUARANTEES AND COMMITMENTS - Reserve For Losses (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="GUARANTEESANDCOMMITMENTSChangesinReserveforLossesDetails" roleURI="http://www.farmermac.com/role/GUARANTEESANDCOMMITMENTSChangesinReserveforLossesDetails">
        <link:definition>9954511 - Disclosure - GUARANTEES AND COMMITMENTS - Changes in Reserve for Losses (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="GUARANTEESANDCOMMITMENTSUnpaidPrincipalBalancesbyDelinquencyStatusDetails" roleURI="http://www.farmermac.com/role/GUARANTEESANDCOMMITMENTSUnpaidPrincipalBalancesbyDelinquencyStatusDetails">
        <link:definition>9954512 - Disclosure - GUARANTEES AND COMMITMENTS - Unpaid Principal Balances by Delinquency Status (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="GUARANTEESANDCOMMITMENTSCreditQualityIndicatorsDetails" roleURI="http://www.farmermac.com/role/GUARANTEESANDCOMMITMENTSCreditQualityIndicatorsDetails">
        <link:definition>9954513 - Disclosure - GUARANTEES AND COMMITMENTS - Credit Quality Indicators (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="NOTESPAYABLENarrativeDetails" roleURI="http://www.farmermac.com/role/NOTESPAYABLENarrativeDetails">
        <link:definition>9954514 - Disclosure - NOTES PAYABLE - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="NOTESPAYABLEBorrowingsDetails" roleURI="http://www.farmermac.com/role/NOTESPAYABLEBorrowingsDetails">
        <link:definition>9954515 - Disclosure - NOTES PAYABLE - Borrowings (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="NOTESPAYABLECallableMediumTermNotesDetails" roleURI="http://www.farmermac.com/role/NOTESPAYABLECallableMediumTermNotesDetails">
        <link:definition>9954516 - Disclosure - NOTES PAYABLE - Callable Medium-Term Notes (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="NOTESPAYABLEEarliestInterestResetDateofBorrowingOutstandingDetails" roleURI="http://www.farmermac.com/role/NOTESPAYABLEEarliestInterestResetDateofBorrowingOutstandingDetails">
        <link:definition>9954517 - Disclosure - NOTES PAYABLE - Earliest Interest Reset Date of Borrowing Outstanding (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="EQUITYDetails" roleURI="http://www.farmermac.com/role/EQUITYDetails">
        <link:definition>9954518 - Disclosure - EQUITY (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FAIRVALUEDISCLOSURESScheduleofFairValueMeasurementsDetails" roleURI="http://www.farmermac.com/role/FAIRVALUEDISCLOSURESScheduleofFairValueMeasurementsDetails">
        <link:definition>9954519 - Disclosure - FAIR VALUE DISCLOSURES - Schedule of Fair Value Measurements (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FAIRVALUEDISCLOSURESScheduleofUnobservableInputReconciliationDetails" roleURI="http://www.farmermac.com/role/FAIRVALUEDISCLOSURESScheduleofUnobservableInputReconciliationDetails">
        <link:definition>9954520 - Disclosure - FAIR VALUE DISCLOSURES - Schedule of Unobservable Input Reconciliation (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FAIRVALUEDISCLOSURESQuantitativeInformationDetails" roleURI="http://www.farmermac.com/role/FAIRVALUEDISCLOSURESQuantitativeInformationDetails">
        <link:definition>9954521 - Disclosure - FAIR VALUE DISCLOSURES - Quantitative Information (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FAIRVALUEDISCLOSURESSummaryofCarryingValueandFairValueDetails" roleURI="http://www.farmermac.com/role/FAIRVALUEDISCLOSURESSummaryofCarryingValueandFairValueDetails">
        <link:definition>9954522 - Disclosure - FAIR VALUE DISCLOSURES - Summary of Carrying Value and Fair Value (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BUSINESSSEGMENTREPORTINGDetails" roleURI="http://www.farmermac.com/role/BUSINESSSEGMENTREPORTINGDetails">
        <link:definition>9954523 - Disclosure - BUSINESS SEGMENT REPORTING (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
    </xs:appinfo>
  </xs:annotation>
  <xs:element id="agm_AgVantageMember" abstract="true" name="AgVantageMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_PaymentsToAcquireDebtSecuritiesAvailableForSaleAndHeldToMaturity" abstract="false" name="PaymentsToAcquireDebtSecuritiesAvailableForSaleAndHeldToMaturity" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_RuralInfrastructureRenewableEnergySegmentMember" abstract="true" name="RuralInfrastructureRenewableEnergySegmentMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_DebtSecuritiesHeldToMaturityMember" abstract="true" name="DebtSecuritiesHeldToMaturityMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_AvailableForSaleSecuritiesDebtMaturitiesWeightedAverageYield" abstract="false" name="AvailableForSaleSecuritiesDebtMaturitiesWeightedAverageYield" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="agm_ProvisionForLoanAndSecuritiesLosses" abstract="false" name="ProvisionForLoanAndSecuritiesLosses" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_FinancingReceivablePercentOfPrincipalBalancePaidDown" abstract="false" name="FinancingReceivablePercentOfPrincipalBalancePaidDown" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:percentItemType"/>
  <xs:element id="agm_HedgedItemsinFairValueHedgingRelationshipLineItems" abstract="true" name="HedgedItemsinFairValueHedgingRelationshipLineItems" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="agm_FinancingReceivableOriginatedInCurrentFiscalYearExcludingAccruedInterestAllowanceForCreditLossWriteOff" abstract="false" name="FinancingReceivableOriginatedInCurrentFiscalYearExcludingAccruedInterestAllowanceForCreditLossWriteOff" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_GuaranteeAssetMeasurementInput" abstract="false" name="GuaranteeAssetMeasurementInput" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:decimalItemType"/>
  <xs:element id="agm_AvailableForSaleSecuritiesInLossPositionForMoreThan12MonthsQualitativeDisclosurePercentOfAmortizedCost" abstract="false" name="AvailableForSaleSecuritiesInLossPositionForMoreThan12MonthsQualitativeDisclosurePercentOfAmortizedCost" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="agm_ReserveForLosses" abstract="false" name="ReserveForLosses" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_FinancingReceivableOriginatedInFiscalYearBeforeLatestFiscalYearExcludingAccruedInterestAllowanceForCreditLossWriteOff" abstract="false" name="FinancingReceivableOriginatedInFiscalYearBeforeLatestFiscalYearExcludingAccruedInterestAllowanceForCreditLossWriteOff" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_FairValueAssetsAndLiabilitiesFairValueAsPercentOfTotalAssets" abstract="false" name="FairValueAssetsAndLiabilitiesFairValueAsPercentOfTotalAssets" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="agm_DebtInstrumentRedemptionAfterPeriodFiveMember" abstract="true" name="DebtInstrumentRedemptionAfterPeriodFiveMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_DebtSecurityInvestmentCategoryAxis" abstract="true" name="DebtSecurityInvestmentCategoryAxis" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:dimensionItem" type="xbrli:stringItemType"/>
  <xs:element id="agm_FarmerMacGuaranteedSecuritiesMember" abstract="true" name="FarmerMacGuaranteedSecuritiesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossAndLoansHeldForSaleFairValueDisclosure" abstract="false" name="FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossAndLoansHeldForSaleFairValueDisclosure" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_LongTermDebtWithInterestRateResetMaturityReminderOfTheFiscalYear" abstract="false" name="LongTermDebtWithInterestRateResetMaturityReminderOfTheFiscalYear" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossHeldInTrust" abstract="false" name="FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLossHeldInTrust" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_FinancingReceivableOriginatedFourYearsBeforeLatestFiscalYearAbstract" abstract="true" name="FinancingReceivableOriginatedFourYearsBeforeLatestFiscalYearAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="agm_IncomeExpenseInterestSettlementsFairValueHedges" abstract="false" name="IncomeExpenseInterestSettlementsFairValueHedges" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_NetEffectiveSpread" abstract="false" name="NetEffectiveSpread" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_NoncashOrPartNoncashAcquisitionLoansAcquiredAndSecuritized" abstract="false" name="NoncashOrPartNoncashAcquisitionLoansAcquiredAndSecuritized" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_LongTermDebtMaturityAfterYearFour" abstract="false" name="LongTermDebtMaturityAfterYearFour" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_FinancingReceivableOriginatedTwoYearsBeforeLatestFiscalYearExcludingAccruedInterestAllowanceForCreditLossWriteOff" abstract="false" name="FinancingReceivableOriginatedTwoYearsBeforeLatestFiscalYearExcludingAccruedInterestAllowanceForCreditLossWriteOff" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_FinancingReceivableOriginatedInCurrentFiscalYearAbstract" abstract="true" name="FinancingReceivableOriginatedInCurrentFiscalYearAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="agm_USDAGuaranteesMember" abstract="true" name="USDAGuaranteesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_DueYearTwoMember" abstract="true" name="DueYearTwoMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_LongTermDebtHedgingAdjustments" abstract="false" name="LongTermDebtHedgingAdjustments" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_GuaranteeAsset" abstract="false" name="GuaranteeAsset" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_DerivativeWeightedAverageForwardPrice" abstract="false" name="DerivativeWeightedAverageForwardPrice" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:perShareItemType"/>
  <xs:element id="agm_SegmentCoreEarnings" abstract="false" name="SegmentCoreEarnings" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_TreasurySegmentMember" abstract="true" name="TreasurySegmentMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="agm_HeldtoMaturitySecuritiesDebtMaturitiesYearTwoThroughFiveWeightedAverageYield" abstract="false" name="HeldtoMaturitySecuritiesDebtMaturitiesYearTwoThroughFiveWeightedAverageYield" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="agm_DueYearThreeMember" abstract="true" name="DueYearThreeMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_ExcessTaxBenefitsFromShareBasedCompensation" abstract="false" name="ExcessTaxBenefitsFromShareBasedCompensation" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_LiabilitiesHeldInTrust" abstract="false" name="LiabilitiesHeldInTrust" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_FinancingReceivableOriginatedFiveOrMoreYearsBeforeLatestFiscalYearExcludingAccruedInterestAllowanceForCreditLossWriteOff" abstract="false" name="FinancingReceivableOriginatedFiveOrMoreYearsBeforeLatestFiscalYearExcludingAccruedInterestAllowanceForCreditLossWriteOff" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_LongTermDebtWithInterestRateResetMaturityYearThree" abstract="false" name="LongTermDebtWithInterestRateResetMaturityYearThree" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_TreasuryFundingSegmentMember" abstract="true" name="TreasuryFundingSegmentMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_FinancingReceivableRevolvingAbstract" abstract="true" name="FinancingReceivableRevolvingAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="agm_UnsecuritizedMember" abstract="true" name="UnsecuritizedMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_FinancingReceivableRevolvingExcludingAccruedInterestAllowanceForCreditLossWriteOff" abstract="false" name="FinancingReceivableRevolvingExcludingAccruedInterestAllowanceForCreditLossWriteOff" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_HeldtoMaturitySecuritiesDebtMaturitiesNextTwelveMonthsWeightedAverageYield" abstract="false" name="HeldtoMaturitySecuritiesDebtMaturitiesNextTwelveMonthsWeightedAverageYield" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="agm_MediumTermNotesCalledDuringThePeriod" abstract="false" name="MediumTermNotesCalledDuringThePeriod" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_SegmentCoreEarningsBeforeIncomeTaxes" abstract="false" name="SegmentCoreEarningsBeforeIncomeTaxes" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_FinancingReceivableOriginatedTwoYearsBeforeLatestFiscalYearAbstract" abstract="true" name="FinancingReceivableOriginatedTwoYearsBeforeLatestFiscalYearAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="agm_EarningsPerShareOnIncrementalCommonSharesAttributableToShareBasedPaymentArrangements" abstract="false" name="EarningsPerShareOnIncrementalCommonSharesAttributableToShareBasedPaymentArrangements" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:perShareItemType"/>
  <xs:element id="agm_ScheduleofHeldtoMaturityAvailableforsaleandTradingSecuritiesTable" abstract="true" name="ScheduleofHeldtoMaturityAvailableforsaleandTradingSecuritiesTable" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:hypercubeItem" type="xbrli:stringItemType"/>
  <xs:element id="agm_FairValueAssetsAndLiabilitiesFairValueAsPercentOfTotalFinancialInstrumentsMeasuredAtFairValue" abstract="false" name="FairValueAssetsAndLiabilitiesFairValueAsPercentOfTotalFinancialInstrumentsMeasuredAtFairValue" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="agm_UnrecordedMaximumPotentialExposureOnGuaranteesDomain" abstract="true" name="UnrecordedMaximumPotentialExposureOnGuaranteesDomain" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_FixedInterestRateMember" abstract="true" name="FixedInterestRateMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_DebtSecuritiesHeldToMaturityFairValueNetOfAllowance" abstract="false" name="DebtSecuritiesHeldToMaturityFairValueNetOfAllowance" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_HedgedItemsInFairValueHedgingRelationshipsTableTextBlock" abstract="false" name="HedgedItemsInFairValueHedgingRelationshipsTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:textBlockItemType"/>
  <xs:element id="agm_HeldToMaturityUnpaidPrincipalBalance" abstract="false" name="HeldToMaturityUnpaidPrincipalBalance" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_TradingSecuritiesWeightedAverageYield" abstract="false" name="TradingSecuritiesWeightedAverageYield" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="agm_OnAndOffBalanceSheetProgramAssetsAtPrincipalBalance" abstract="false" name="OnAndOffBalanceSheetProgramAssetsAtPrincipalBalance" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_LongTermDebtWithInterestRateResetMaturityYearFour" abstract="false" name="LongTermDebtWithInterestRateResetMaturityYearFour" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_InstitutionalCreditMember" abstract="true" name="InstitutionalCreditMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_RuralInfrastructureFinanceMember" abstract="true" name="RuralInfrastructureFinanceMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_AOCIAccumulatedGainLossDebtSecuritiesParentMember" abstract="true" name="AOCIAccumulatedGainLossDebtSecuritiesParentMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="agm_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetAllowanceForCreditLoss" abstract="false" name="FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetAllowanceForCreditLoss" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_DueYearFourMember" abstract="true" name="DueYearFourMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_TreasuryInvestmentsSegmentMember" abstract="true" name="TreasuryInvestmentsSegmentMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_ScheduleOfCashFlowsRelatedToTransferOfSecuritizationsTableTextBlock" abstract="false" name="ScheduleOfCashFlowsRelatedToTransferOfSecuritizationsTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:textBlockItemType"/>
  <xs:element id="agm_FinancingReceivableOriginatedThreeYearsBeforeLatestFiscalYearExcludingAccruedInterestAllowanceForCreditLossWriteOff" abstract="false" name="FinancingReceivableOriginatedThreeYearsBeforeLatestFiscalYearExcludingAccruedInterestAllowanceForCreditLossWriteOff" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_DerivativeLiabilityIncludingNotSubjectToMasterNettingArrangementAfterOffsetAndDeductionNetAmount" abstract="false" name="DerivativeLiabilityIncludingNotSubjectToMasterNettingArrangementAfterOffsetAndDeductionNetAmount" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_ScheduleofHeldtoMaturityAvailableforsaleandTradingSecuritiesLineItems" abstract="true" name="ScheduleofHeldtoMaturityAvailableforsaleandTradingSecuritiesLineItems" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="agm_InterestRateSwapPayFixedNonCallableMember" abstract="true" name="InterestRateSwapPayFixedNonCallableMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_RuralInfrastructureRuralUtilitiesSegementMember" abstract="true" name="RuralInfrastructureRuralUtilitiesSegementMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_LongTermDebtWithInterestRateResetMaturityYearTwo" abstract="false" name="LongTermDebtWithInterestRateResetMaturityYearTwo" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_UnclearedDerivativesMember" abstract="true" name="UnclearedDerivativesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_FinancingReceivableOriginatedFiveOrMoreYearsBeforeLatestFiscalYearAbstract" abstract="true" name="FinancingReceivableOriginatedFiveOrMoreYearsBeforeLatestFiscalYearAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="agm_DebtSecurityInvestmentCategoryDomain" abstract="true" name="DebtSecurityInvestmentCategoryDomain" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_FinancingReceivableOriginatedInFiscalYearBeforeLatestFiscalYearAbstract" abstract="true" name="FinancingReceivableOriginatedInFiscalYearBeforeLatestFiscalYearAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="agm_DueYearOneMember" abstract="true" name="DueYearOneMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_MarketableSecuritiesFairValueDisclosure" abstract="false" name="MarketableSecuritiesFairValueDisclosure" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_AvailableForSaleSecuritiesDebtMaturitiesYearTwoThroughFiveWeightedAverageYield" abstract="false" name="AvailableForSaleSecuritiesDebtMaturitiesYearTwoThroughFiveWeightedAverageYield" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="agm_GuaranteeAndCommitmentObligationsMember" abstract="true" name="GuaranteeAndCommitmentObligationsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_HeldtoMaturitySecuritiesDebtMaturitiesAfterTenYearsWeightedAverageYield" abstract="false" name="HeldtoMaturitySecuritiesDebtMaturitiesAfterTenYearsWeightedAverageYield" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="agm_OnBalanceSheetMember" abstract="true" name="OnBalanceSheetMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss" abstract="false" name="DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_TradingSecuritiesUnpaidPrincipalBalance" abstract="false" name="TradingSecuritiesUnpaidPrincipalBalance" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_LongTermDebtWithInterestRateResetMaturityAfterYearFour" abstract="false" name="LongTermDebtWithInterestRateResetMaturityAfterYearFour" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_GuaranteeobligationsissuedafterJanuary12003Member" abstract="true" name="GuaranteeobligationsissuedafterJanuary12003Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_PremiumDiscountRecognizedOnHedgedInstrument" abstract="false" name="PremiumDiscountRecognizedOnHedgedInstrument" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_DebtSecuritiesAvailableForSaleUnpaidPrincipalBalance" abstract="false" name="DebtSecuritiesAvailableForSaleUnpaidPrincipalBalance" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_NoninterestExpenseExcludingLoanLeaseAndOtherLosses" abstract="false" name="NoninterestExpenseExcludingLoanLeaseAndOtherLosses" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_HeldToMaturitySecuritiesDebtMaturitiesWeightedAverageYieldSingleMaturityDateAbstract" abstract="true" name="HeldToMaturitySecuritiesDebtMaturitiesWeightedAverageYieldSingleMaturityDateAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="agm_OffBalanceSheetMember" abstract="true" name="OffBalanceSheetMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_InterestRevenueExpenseNetMember" abstract="true" name="InterestRevenueExpenseNetMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_StockAppreciationRightsAndRestrictedStockMember" abstract="true" name="StockAppreciationRightsAndRestrictedStockMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_OtherNonInterestIncomeExpenseExcludingGuaranteeAndCommitmentFees" abstract="false" name="OtherNonInterestIncomeExpenseExcludingGuaranteeAndCommitmentFees" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_ScheduleOfAvailableForSaleAndTradingSecuritiesTable" abstract="true" name="ScheduleOfAvailableForSaleAndTradingSecuritiesTable" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:hypercubeItem" type="xbrli:stringItemType"/>
  <xs:element id="agm_InConsolidatedTrustsMember" abstract="true" name="InConsolidatedTrustsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_DebtSecuritiesTradingAccruedInterest" abstract="false" name="DebtSecuritiesTradingAccruedInterest" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_UnrecordedMaximumPotentialExposureOnGuaranteesAxis" abstract="true" name="UnrecordedMaximumPotentialExposureOnGuaranteesAxis" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:dimensionItem" type="xbrli:stringItemType"/>
  <xs:element id="agm_DebtSecuritiesHeldToMaturityTransferInUnrealizedGainLoss" abstract="false" name="DebtSecuritiesHeldToMaturityTransferInUnrealizedGainLoss" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_VariableInterestEntityConsolidatedFairValueDisclosureLiabilities" abstract="false" name="VariableInterestEntityConsolidatedFairValueDisclosureLiabilities" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsWeightedAverageYield" abstract="false" name="HeldToMaturitySecuritiesDebtMaturitiesAfterFiveThroughTenYearsWeightedAverageYield" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="agm_OtherComprehensiveIncomeLossHeldToMaturitySecuritiesBeforeTax" abstract="false" name="OtherComprehensiveIncomeLossHeldToMaturitySecuritiesBeforeTax" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_LongTermDebtNetOfHedgingAdjustments" abstract="false" name="LongTermDebtNetOfHedgingAdjustments" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_AgricultureFinanceFarmAndRanchSegmentMember" abstract="true" name="AgricultureFinanceFarmAndRanchSegmentMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_AvailableForSaleSecuritiesDebtMaturitiesNextTwelveMonthsWeightedAverageYield" abstract="false" name="AvailableForSaleSecuritiesDebtMaturitiesNextTwelveMonthsWeightedAverageYield" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="agm_RegulatoryFees" abstract="false" name="RegulatoryFees" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_SegmentCoreEarningsBeforePreferredStockDividendsAndAttributionOfIncomeToNonControllingInterestPreferredStockDividends" abstract="false" name="SegmentCoreEarningsBeforePreferredStockDividendsAndAttributionOfIncomeToNonControllingInterestPreferredStockDividends" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_ProceedsFromMaturitiesPrepaymentsAndCallsOfDebtSecuritiesAvailableForSaleAndHeldToMaturity" abstract="false" name="ProceedsFromMaturitiesPrepaymentsAndCallsOfDebtSecuritiesAvailableForSaleAndHeldToMaturity" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_InterestRateSwapReceiveFixedCallableMember" abstract="true" name="InterestRateSwapReceiveFixedCallableMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_InterestRateSwapReceiveFixedNonCallableMember" abstract="true" name="InterestRateSwapReceiveFixedNonCallableMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_LongTermStandbyPurchaseCommitmentsAndGuaranteedSecuritiesMember" abstract="true" name="LongTermStandbyPurchaseCommitmentsAndGuaranteedSecuritiesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_LoansHeldForInvestmentTransferredToConsolidatedTrusts" abstract="false" name="LoansHeldForInvestmentTransferredToConsolidatedTrusts" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_NoninterestIncomeExcludingProvisionForOtherCreditLosses" abstract="false" name="NoninterestIncomeExcludingProvisionForOtherCreditLosses" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_DueWithinOneYearMember" abstract="true" name="DueWithinOneYearMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_ScheduleOfAvailableForSaleAndTradingSecuritiesLineItems" abstract="true" name="ScheduleOfAvailableForSaleAndTradingSecuritiesLineItems" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="agm_ClearedSwapsMember" abstract="true" name="ClearedSwapsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_ScheduleOfLongTermStandbyPurchaseCommitmentsTableTextBlock" abstract="false" name="ScheduleOfLongTermStandbyPurchaseCommitmentsTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:textBlockItemType"/>
  <xs:element id="agm_FinanceReceivableAccruedInterestPayable" abstract="false" name="FinanceReceivableAccruedInterestPayable" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_NumberOfSubsidiaries" abstract="false" name="NumberOfSubsidiaries" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="agm_TotalAmountsOfLineItemsPresentedInTheConsolidatedStatementOfIncome" abstract="false" name="TotalAmountsOfLineItemsPresentedInTheConsolidatedStatementOfIncome" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_DiscountNotesMember" abstract="true" name="DiscountNotesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_DebtSecuritiesHeldToMaturityTransferIn" abstract="false" name="DebtSecuritiesHeldToMaturityTransferIn" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_DebtSecuritiesHeldToMaturityUnrealizedLossPositionMoreThan12MonthsNumberOfPositions" abstract="false" name="DebtSecuritiesHeldToMaturityUnrealizedLossPositionMoreThan12MonthsNumberOfPositions" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="agm_FinancingReceivableOriginatedThreeYearsBeforeLatestFiscalYearAbstract" abstract="true" name="FinancingReceivableOriginatedThreeYearsBeforeLatestFiscalYearAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="agm_DueAfterFourYearsMember" abstract="true" name="DueAfterFourYearsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_WeightedAverageRemainingMaturityLoansUnderlyingGuaranteesNotHeldByTransferor" abstract="false" name="WeightedAverageRemainingMaturityLoansUnderlyingGuaranteesNotHeldByTransferor" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="agm_HedgedItemsinFairValueHedgingRelationshipTable" abstract="true" name="HedgedItemsinFairValueHedgingRelationshipTable" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:hypercubeItem" type="xbrli:stringItemType"/>
  <xs:element id="agm_LongTermDebtWithInterestRateResetMaturityYearOne" abstract="false" name="LongTermDebtWithInterestRateResetMaturityYearOne" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_DebtSecuritiesHeldToMaturityUnrealizedLossPositionNumberOfPositions" abstract="false" name="DebtSecuritiesHeldToMaturityUnrealizedLossPositionNumberOfPositions" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="agm_DerivativeAssetSubjectToMasterNettingArrangementCollateralObligationToReturnSecurityNotOffsetNet" abstract="false" name="DerivativeAssetSubjectToMasterNettingArrangementCollateralObligationToReturnSecurityNotOffsetNet" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_NetChangeInFairValueTradingSecuritiesHedgedAssetsFinancialDerivativesAndLoansHeldForSale" abstract="false" name="NetChangeInFairValueTradingSecuritiesHedgedAssetsFinancialDerivativesAndLoansHeldForSale" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_LongTermDebtWithInterestRateReset" abstract="false" name="LongTermDebtWithInterestRateReset" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_UnclearedSwapsMember" abstract="true" name="UnclearedSwapsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_DueAfterYearFourMember" abstract="true" name="DueAfterYearFourMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_DerivativeNetInterestSettlements" abstract="false" name="DerivativeNetInterestSettlements" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_FarmerMacAndUsdaGuaranteedSecuritiesMember" abstract="true" name="FarmerMacAndUsdaGuaranteedSecuritiesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_ClearedDerivativesMember" abstract="true" name="ClearedDerivativesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsWeightedAverageYield" abstract="false" name="AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsWeightedAverageYield" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="agm_HedgedItemNetInterestSettlements" abstract="false" name="HedgedItemNetInterestSettlements" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_DebtSecuritiesTradingMember" abstract="true" name="DebtSecuritiesTradingMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_DebtSecuritiesHeldToMaturityTransferInAccumulatedLoss" abstract="false" name="DebtSecuritiesHeldToMaturityTransferInAccumulatedLoss" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_FinancingReceivableOriginatedFourYearsBeforeLatestFiscalYearExcludingAccruedInterestAllowanceForCreditLossWriteOff" abstract="false" name="FinancingReceivableOriginatedFourYearsBeforeLatestFiscalYearExcludingAccruedInterestAllowanceForCreditLossWriteOff" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_DerivativeCollateralExceedingDerivativePositionAdditionalNetExposure" abstract="false" name="DerivativeCollateralExceedingDerivativePositionAdditionalNetExposure" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_MeasurementInputRangeOfBrokerQuotesMember" abstract="true" name="MeasurementInputRangeOfBrokerQuotesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_GuaranteeAssetMember" abstract="true" name="GuaranteeAssetMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_LongTermStandbyPurchaseCommitmentsMember" abstract="true" name="LongTermStandbyPurchaseCommitmentsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_AgriculturalFinanceMember" abstract="true" name="AgriculturalFinanceMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_ReconcilingAdjustmentsFromNetInterestIncomeToNetEffectiveSpreadNet" abstract="false" name="ReconcilingAdjustmentsFromNetInterestIncomeToNetEffectiveSpreadNet" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_PaymentsToThirdPartiesOnDebtSecuritiesOfConsolidatedTrusts" abstract="false" name="PaymentsToThirdPartiesOnDebtSecuritiesOfConsolidatedTrusts" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_AvailableforsaleSecuritiesDebtMaturitiesWeightedAverageYieldSingleMaturityDateAbstract" abstract="true" name="AvailableforsaleSecuritiesDebtMaturitiesWeightedAverageYieldSingleMaturityDateAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="agm_DebtSecuritiesAvailableForSaleMember" abstract="true" name="DebtSecuritiesAvailableForSaleMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_ScheduleOfReserveForLossesTableTextBlock" abstract="false" name="ScheduleOfReserveForLossesTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:textBlockItemType"/>
  <xs:element id="agm_AvailableForSaleSecuritiesDebtMaturitiesYearSixThroughTenWeightedAverageYield" abstract="false" name="AvailableForSaleSecuritiesDebtMaturitiesYearSixThroughTenWeightedAverageYield" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="agm_DerivativeNetHedgeIneffectivenessGainLossComponentRecognizedOnHedgedItem" abstract="false" name="DerivativeNetHedgeIneffectivenessGainLossComponentRecognizedOnHedgedItem" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_DebtSecuritiesTradingAllowanceForCreditLoss" abstract="false" name="DebtSecuritiesTradingAllowanceForCreditLoss" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="agm_AgricultureFinanceCorporateAgFinanceSegmentMember" abstract="true" name="AgricultureFinanceCorporateAgFinanceSegmentMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_FloatingInterestRateMember" abstract="true" name="FloatingInterestRateMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="agm_HeldToMaturitySecuritiesDebtMaturitiesWeightedAverageYield" abstract="false" name="HeldToMaturitySecuritiesDebtMaturitiesWeightedAverageYield" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
</xs:schema>
