<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.19.3</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>1067</ContextCount>
  <ElementCount>445</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>135</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>5</UnitCount>
  <MyReports>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0001000 - Document - COVER PAGE</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/CoverPage</Role>
      <ShortName>COVER PAGE</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>1003000 - Statement - CONSOLIDATED BALANCE SHEETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/ConsolidatedBalanceSheets</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>1003501 - Statement - CONSOLIDATED BALANCE SHEETS (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/ConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>1005000 - Statement - CONSOLIDATED STATEMENTS OF OPERATIONS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/ConsolidatedStatementsOfOperations</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF OPERATIONS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>1008000 - Statement - CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/ConsolidatedStatementsOfComprehensiveIncome</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>1009000 - Statement - CONSOLIDATED STATEMENTS OF EQUITY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/ConsolidatedStatementsOfEquity</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF EQUITY</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>1009001 - Statement - CONSOLIDATED STATEMENTS OF EQUITY (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/ConsolidatedStatementsOfEquityParenthetical</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF EQUITY (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>1010000 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/ConsolidatedStatementsOfCashFlows</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CASH FLOWS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>2101100 - Disclosure - Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/SummaryOfSignificantAccountingPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>2102100 - Disclosure - Investment Securities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/InvestmentSecurities</Role>
      <ShortName>Investment Securities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>2103100 - Disclosure - Farmer Mac Guaranteed Securities and USDA Securities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaSecurities</Role>
      <ShortName>Farmer Mac Guaranteed Securities and USDA Securities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>2104100 - Disclosure - Financial Derivatives</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/FinancialDerivatives</Role>
      <ShortName>Financial Derivatives</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>2105100 - Disclosure - Loans and Allowance for Losses</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/LoansAndAllowanceForLosses</Role>
      <ShortName>Loans and Allowance for Losses</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>2106100 - Disclosure - Guarantees and Long-Term Standby Purchase Commitments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/GuaranteesAndLongTermStandbyPurchaseCommitments</Role>
      <ShortName>Guarantees and Long-Term Standby Purchase Commitments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>2107100 - Disclosure - Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/Equity</Role>
      <ShortName>Equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>2108100 - Disclosure - Fair Value Disclosures</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/FairValueDisclosures</Role>
      <ShortName>Fair Value Disclosures</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>2109100 - Disclosure - Business Segment Reporting</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/BusinessSegmentReporting</Role>
      <ShortName>Business Segment Reporting</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>2201201 - Disclosure - Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/SummaryOfSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.farmermac.com/role/SummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>18</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>2301302 - Disclosure - Summary of Significant Accounting Policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/SummaryOfSignificantAccountingPoliciesTables</Role>
      <ShortName>Summary of Significant Accounting Policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmermac.com/role/SummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>19</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>2302301 - Disclosure - Investment Securities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/InvestmentSecuritiesTables</Role>
      <ShortName>Investment Securities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmermac.com/role/InvestmentSecurities</ParentRole>
      <Position>20</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>2303301 - Disclosure - Farmer Mac Guaranteed Securities and USDA Securities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesTables</Role>
      <ShortName>Farmer Mac Guaranteed Securities and USDA Securities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaSecurities</ParentRole>
      <Position>21</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>2304301 - Disclosure - Financial Derivatives (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/FinancialDerivativesTables</Role>
      <ShortName>Financial Derivatives (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmermac.com/role/FinancialDerivatives</ParentRole>
      <Position>22</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>2305301 - Disclosure - Loans and Allowance for Losses (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/LoansAndAllowanceForLossesTables</Role>
      <ShortName>Loans and Allowance for Losses (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmermac.com/role/LoansAndAllowanceForLosses</ParentRole>
      <Position>23</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>2306301 - Disclosure - Guarantees and Long-Term Standby Purchase Commitments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/GuaranteesAndLongTermStandbyPurchaseCommitmentsTables</Role>
      <ShortName>Guarantees and Long-Term Standby Purchase Commitments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmermac.com/role/GuaranteesAndLongTermStandbyPurchaseCommitments</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>2308301 - Disclosure - Fair Value Disclosures (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/FairValueDisclosuresTables</Role>
      <ShortName>Fair Value Disclosures (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmermac.com/role/FairValueDisclosures</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>2309301 - Disclosure - Business Segment Reporting (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/BusinessSegmentReportingTables</Role>
      <ShortName>Business Segment Reporting (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.farmermac.com/role/BusinessSegmentReporting</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>2401404 - Disclosure - Summary of Significant Accounting Policies - Consolidation of Variable Interest Entities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/SummaryOfSignificantAccountingPoliciesConsolidationOfVariableInterestEntitiesDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Consolidation of Variable Interest Entities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>2401405 - Disclosure - Summary of Significant Accounting Policies - Earnings Per Common Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/SummaryOfSignificantAccountingPoliciesEarningsPerCommonShareDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Earnings Per Common Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>2401406 - Disclosure - Summary of Significant Accounting Policies - Schedule of Accumulated Other Comprehensive Income, Net of Tax (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/SummaryOfSignificantAccountingPoliciesScheduleOfAccumulatedOtherComprehensiveIncomeNetOfTaxDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Schedule of Accumulated Other Comprehensive Income, Net of Tax (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>2401407 - Disclosure - Summary of Significant Accounting Policies - Schedule of Reclassification out of Accumulated Other Comprehensive Income (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/SummaryOfSignificantAccountingPoliciesScheduleOfReclassificationOutOfAccumulatedOtherComprehensiveIncomeDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Schedule of Reclassification out of Accumulated Other Comprehensive Income (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>2402402 - Disclosure - Investment Securities - Schedule of Investment Securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/InvestmentSecuritiesScheduleOfInvestmentSecuritiesDetails</Role>
      <ShortName>Investment Securities - Schedule of Investment Securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>2402403 - Disclosure - Investment Securities - Unrealized Loss Position (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/InvestmentSecuritiesUnrealizedLossPositionDetails</Role>
      <ShortName>Investment Securities - Unrealized Loss Position (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>2402404 - Disclosure - Investment Securities - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/InvestmentSecuritiesNarrativeDetails</Role>
      <ShortName>Investment Securities - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>33</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>2402405 - Disclosure - Investment Securities - Debt Maturities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/InvestmentSecuritiesDebtMaturitiesDetails</Role>
      <ShortName>Investment Securities - Debt Maturities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>2403402 - Disclosure - Farmer Mac Guaranteed Securities and USDA Securities - Farmer Mac Guaranteed Securities and USDA Securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesFarmerMacGuaranteedSecuritiesAndUsdaSecuritiesDetails</Role>
      <ShortName>Farmer Mac Guaranteed Securities and USDA Securities - Farmer Mac Guaranteed Securities and USDA Securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>2403403 - Disclosure - Farmer Mac Guaranteed Securities and USDA Securities - Unrealized Loss Position (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesUnrealizedLossPositionDetails</Role>
      <ShortName>Farmer Mac Guaranteed Securities and USDA Securities - Unrealized Loss Position (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>2403404 - Disclosure - Farmer Mac Guaranteed Securities and USDA Securities - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesNarrativeDetails</Role>
      <ShortName>Farmer Mac Guaranteed Securities and USDA Securities - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesTables</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>2403405 - Disclosure - Farmer Mac Guaranteed Securities and USDA Securities - Schedule of Available-for-sale Securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesScheduleOfAvailableForSaleSecuritiesDetails</Role>
      <ShortName>Farmer Mac Guaranteed Securities and USDA Securities - Schedule of Available-for-sale Securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>2403406 - Disclosure - Farmer Mac Guaranteed Securities and USDA Securities - Schedule of Held-to-maturity Securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/FarmerMacGuaranteedSecuritiesAndUsdaSecuritiesScheduleOfHeldToMaturitySecuritiesDetails</Role>
      <ShortName>Farmer Mac Guaranteed Securities and USDA Securities - Schedule of Held-to-maturity Securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>2404402 - Disclosure - Financial Derivatives  - Schedule of Derivative Instruments in Statement of Financial Position (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/FinancialDerivativesScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionDetails</Role>
      <ShortName>Financial Derivatives  - Schedule of Derivative Instruments in Statement of Financial Position (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>2404403 - Disclosure - Financial Derivatives  - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/FinancialDerivativesNarrativeDetails</Role>
      <ShortName>Financial Derivatives  - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>2404404 - Disclosure - Financial Derivatives  - Schedule of Net Income/(Expense) Recognized (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/FinancialDerivativesScheduleOfNetIncomeExpenseRecognizedDetails</Role>
      <ShortName>Financial Derivatives  - Schedule of Net Income/(Expense) Recognized (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>2404405 - Disclosure - Financial Derivatives - Hedged Items in Fair Value Hedging Relationships (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/FinancialDerivativesHedgedItemsInFairValueHedgingRelationshipsDetails</Role>
      <ShortName>Financial Derivatives - Hedged Items in Fair Value Hedging Relationships (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>2404406 - Disclosure - Financial Derivatives - Schedule of Credit Exposure to Interest Rate Swap Counterparties (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/FinancialDerivativesScheduleOfCreditExposureToInterestRateSwapCounterpartiesDetails</Role>
      <ShortName>Financial Derivatives - Schedule of Credit Exposure to Interest Rate Swap Counterparties (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>2405402 - Disclosure - Loans and Allowance for Losses - Schedule of Compositon of Loan Balances (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/LoansAndAllowanceForLossesScheduleOfCompositonOfLoanBalancesDetails</Role>
      <ShortName>Loans and Allowance for Losses - Schedule of Compositon of Loan Balances (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>2405403 - Disclosure - Loans and Allowance for Losses  - Schedule of Allowance for Credit Losses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/LoansAndAllowanceForLossesScheduleOfAllowanceForCreditLossesDetails</Role>
      <ShortName>Loans and Allowance for Losses  - Schedule of Allowance for Credit Losses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>2405404 - Disclosure - Loans and Allowance for Losses  - Schedule of Allowance for Losses by Impairment Method and Commodity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/LoansAndAllowanceForLossesScheduleOfAllowanceForLossesByImpairmentMethodAndCommodityDetails</Role>
      <ShortName>Loans and Allowance for Losses  - Schedule of Allowance for Losses by Impairment Method and Commodity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>2405405 - Disclosure - Loans and Allowance for Losses  - Schedule of Impaired Financing Receivables (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/LoansAndAllowanceForLossesScheduleOfImpairedFinancingReceivablesDetails</Role>
      <ShortName>Loans and Allowance for Losses  - Schedule of Impaired Financing Receivables (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>2405406 - Disclosure - Loans and Allowance for Losses  - Schedule of  Past Due Financing Receivables (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/LoansAndAllowanceForLossesScheduleOfPastDueFinancingReceivablesDetails</Role>
      <ShortName>Loans and Allowance for Losses  - Schedule of  Past Due Financing Receivables (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>2405407 - Disclosure - Loans and Allowance for Losses  - Schedule of Financing Receivables Credit Quality Indicators (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/LoansAndAllowanceForLossesScheduleOfFinancingReceivablesCreditQualityIndicatorsDetails</Role>
      <ShortName>Loans and Allowance for Losses  - Schedule of Financing Receivables Credit Quality Indicators (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>2405408 - Disclosure - Loans and Allowance for Losses  - Schedule of Concentrations of Risk by Risk Factor (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/LoansAndAllowanceForLossesScheduleOfConcentrationsOfRiskByRiskFactorDetails</Role>
      <ShortName>Loans and Allowance for Losses  - Schedule of Concentrations of Risk by Risk Factor (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>2405409 - Disclosure - Loans and Allowance for Losses - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/LoansAndAllowanceForLossesNarrativeDetails</Role>
      <ShortName>Loans and Allowance for Losses - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>2406402 - Disclosure - Guarantees and Long-Term Standby Purchase Commitments  - Off-Balance Sheet Guaranteed Securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/GuaranteesAndLongTermStandbyPurchaseCommitmentsOffBalanceSheetGuaranteedSecuritiesDetails</Role>
      <ShortName>Guarantees and Long-Term Standby Purchase Commitments  - Off-Balance Sheet Guaranteed Securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>2406403 - Disclosure - Guarantees and Long-Term Standby Purchase Commitments  - Cash Flows from Off-balance sheet Guaranteed Securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/GuaranteesAndLongTermStandbyPurchaseCommitmentsCashFlowsFromOffBalanceSheetGuaranteedSecuritiesDetails</Role>
      <ShortName>Guarantees and Long-Term Standby Purchase Commitments  - Cash Flows from Off-balance sheet Guaranteed Securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>2406404 - Disclosure - Guarantees and Long-Term Standby Purchase Commitments  - Long-Term Standby Purchase Commitments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/GuaranteesAndLongTermStandbyPurchaseCommitmentsLongTermStandbyPurchaseCommitmentsDetails</Role>
      <ShortName>Guarantees and Long-Term Standby Purchase Commitments  - Long-Term Standby Purchase Commitments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>2407401 - Disclosure - Equity - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/EquityNarrativeDetails</Role>
      <ShortName>Equity - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>2407402 - Disclosure - Equity - Capital Requirements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/EquityCapitalRequirementsDetails</Role>
      <ShortName>Equity - Capital Requirements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>2408402 - Disclosure - Fair Value Disclosures  - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/FairValueDisclosuresNarrativeDetails</Role>
      <ShortName>Fair Value Disclosures  - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>2408403 - Disclosure - Fair Value Disclosures  - Fair Value Measurements, Recurring and Nonrecurring (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/FairValueDisclosuresFairValueMeasurementsRecurringAndNonrecurringDetails</Role>
      <ShortName>Fair Value Disclosures  - Fair Value Measurements, Recurring and Nonrecurring (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>2408404 - Disclosure - Fair Value Disclosures  - Unobservable Input Reconciliation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/FairValueDisclosuresUnobservableInputReconciliationDetails</Role>
      <ShortName>Fair Value Disclosures  - Unobservable Input Reconciliation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>2408405 - Disclosure - Fair Value Disclosures  - Quantitative Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/FairValueDisclosuresQuantitativeInformationDetails</Role>
      <ShortName>Fair Value Disclosures  - Quantitative Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>2408406 - Disclosure - Fair Value Disclosures  - Summary of Carrying Value and Fair Value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/FairValueDisclosuresSummaryOfCarryingValueAndFairValueDetails</Role>
      <ShortName>Fair Value Disclosures  - Summary of Carrying Value and Fair Value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="a2019q310-q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>2409402 - Disclosure - Business Segment Reporting  - Core Earnings - Business Segments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.farmermac.com/role/BusinessSegmentReportingCoreEarningsBusinessSegmentsDetails</Role>
      <ShortName>Business Segment Reporting  - Core Earnings - Business Segments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-Q" original="a2019q310-q.htm">a2019q310-q.htm</File>
    <File>agm-20190930.xsd</File>
    <File>agm-20190930_cal.xml</File>
    <File>agm-20190930_def.xml</File>
    <File>agm-20190930_lab.xml</File>
    <File>agm-20190930_pre.xml</File>
    <File>ex311agm-09302019.htm</File>
    <File>ex312agm-09302019.htm</File>
    <File>ex32agm-09302019.htm</File>
  </InputFiles>
  <SupplementalFiles>
    <File>logo2016a23.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy>http://xbrl.sec.gov/dei/2019-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://fasb.org/us-gaap/2018-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://fasb.org/srt/2018-01-31</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
