XML 48 R38.htm IDEA: XBRL DOCUMENT
v3.22.1

Farmer Mac Guaranteed Securities and USDA Securities - Schedule of On-Balance Sheet Securities (Details) - USD ($) $ in Thousands | Mar. 31, 2022 | Dec. 31, 2021
--- | --- | ---
Farmer Mac Guaranteed Securities |  |
Held-to-maturity: |  |
Unpaid Principal Balance | $ 1,906,421 | $ 2,033,345
Amortized Cost | 1,906,378 | 2,033,371
Allowance for losses | (160) | (132)
Unrealized Gains | 3,144 | 11,259
Unrealized Losses | (33,541) | (12,764)
Fair Value | 1,875,821 | 2,031,734
Available-for-sale: |  |
Amortized cost | 6,672,894 |
Fair Value | 6,600,246 |
USDA Securities: |  |
Held-to-maturity: |  |
Unpaid Principal Balance | 2,411,399 | 2,411,649
Amortized Cost | 2,436,103 | 2,436,331
Allowance for losses | 0 | 0
Unrealized Gains | 221 | 95,741
Unrealized Losses | (44,593) | 0
Fair Value | 2,391,731 | 2,532,072
Trading: |  |
Unpaid Principal Balance | 3,370 | 4,299
Amortized Cost | 3,481 | 4,433
Allowance for losses | 0 | 0
Unrealized Gains | 0 | 1
Unrealized Losses | (95) | (33)
Fair Value | 3,386 | $ 4,401
Trading securities, weighted-average yield |  | 5.05%
Farmer Mac Guaranteed Securities and USDA Securities |  |
Held-to-maturity: |  |
Unpaid Principal Balance | 4,317,820 | $ 4,444,994
Amortized Cost | 4,342,481 | 4,469,702
Allowance for losses | (160) | (132)
Unrealized Gains | 3,365 | 107,000
Unrealized Losses | (78,134) | (12,764)
Fair Value | 4,267,552 | 4,563,806
Farmer Mac Guaranteed Securities: |  |
Available-for-sale: |  |
Unpaid Principal Balance | 6,659,760 | 6,122,240
Amortized cost | 6,672,894 | 6,135,807
Allowance for losses | (681) | (263)
Unrealized Gains | 45,780 | 213,025
Unrealized Losses | (117,747) | (20,010)
Fair Value | 6,600,246 | 6,328,559
Held-to-Maturity Securities | Farmer Mac Guaranteed Securities |  |
Held-to-maturity: |  |
Unamortized Premium/(Discount) | (43) | 26
Available-for-sale: |  |
Unamortized Premium/(Discount) | (43) | 26
Trading: |  |
Unamortized Premium/(Discount) | (43) | 26
Held-to-Maturity Securities | USDA Securities: |  |
Held-to-maturity: |  |
Unamortized Premium/(Discount) | 24,704 | 24,682
Available-for-sale: |  |
Unamortized Premium/(Discount) | 24,704 | 24,682
Trading: |  |
Unamortized Premium/(Discount) | 24,704 | 24,682
Held-to-Maturity Securities | Farmer Mac Guaranteed Securities and USDA Securities |  |
Held-to-maturity: |  |
Unamortized Premium/(Discount) | 24,661 | 24,708
Available-for-sale: |  |
Unamortized Premium/(Discount) | 24,661 | 24,708
Trading: |  |
Unamortized Premium/(Discount) | 24,661 | 24,708
Available-for-Sale Securities | Farmer Mac Guaranteed Securities: |  |
Held-to-maturity: |  |
Unamortized Premium/(Discount) | 13,134 | 13,567
Available-for-sale: |  |
Unamortized Premium/(Discount) | 13,134 | 13,567
Trading: |  |
Unamortized Premium/(Discount) | 13,134 | 13,567
Debt Securities, Trading | USDA Securities: |  |
Held-to-maturity: |  |
Unamortized Premium/(Discount) | 111 | 134
Available-for-sale: |  |
Unamortized Premium/(Discount) | 111 | 134
Trading: |  |
Unamortized Premium/(Discount) | 111 | 134
Farmer Mac Guaranteed Securities | Farmer Mac Guaranteed Securities |  |
Available-for-sale: |  |
Fair Value | 11,000 | 12,400
Trading: |  |
Derivative, notional amount | 262,600 | 275,400
Farmer Mac Guaranteed Securities | Farmer Mac Guaranteed Securities: |  |
Available-for-sale: |  |
Unpaid Principal Balance | 0 | 0
Amortized cost | 11,918 | 12,297
Allowance for losses | 0 | 0
Unrealized Gains | 0 | 117
Unrealized Losses | (896) | 0
Fair Value | 11,022 | 12,414
Farmer Mac Guaranteed Securities | Available-for-Sale Securities | Farmer Mac Guaranteed Securities: |  |
Held-to-maturity: |  |
Unamortized Premium/(Discount) | 11,918 | 12,297
Available-for-sale: |  |
Unamortized Premium/(Discount) | 11,918 | 12,297
Trading: |  |
Unamortized Premium/(Discount) | 11,918 | 12,297
AgVantage |  |
Trading: |  |
Available-for-sale, accrued interest excluded | 35,800 | 29,800
Held-to-maturity, accrued interest excluded | 34,500 | 42,100
Trading securities, accrued interest excluded | 100 | 100
AgVantage | Farmer Mac Guaranteed Securities |  |
Held-to-maturity: |  |
Unpaid Principal Balance | 1,880,383 | 2,003,486
Amortized Cost | 1,880,383 | 2,003,486
Allowance for losses | (160) | (132)
Unrealized Gains | 2,895 | 10,097
Unrealized Losses | (33,178) | (12,764)
Fair Value | 1,849,940 | 2,000,687
AgVantage | Farmer Mac Guaranteed Securities: |  |
Available-for-sale: |  |
Unpaid Principal Balance | 6,659,760 | 6,122,240
Amortized cost | 6,660,976 | 6,123,510
Allowance for losses | (681) | (263)
Unrealized Gains | 45,780 | 212,908
Unrealized Losses | (116,851) | (20,010)
Fair Value | 6,589,224 | 6,316,145
AgVantage | Held-to-Maturity Securities | Farmer Mac Guaranteed Securities |  |
Held-to-maturity: |  |
Unamortized Premium/(Discount) | 0 | 0
Available-for-sale: |  |
Unamortized Premium/(Discount) | 0 | 0
Trading: |  |
Unamortized Premium/(Discount) | 0 | 0
AgVantage | Available-for-Sale Securities | Farmer Mac Guaranteed Securities: |  |
Held-to-maturity: |  |
Unamortized Premium/(Discount) | 1,216 | 1,270
Available-for-sale: |  |
Unamortized Premium/(Discount) | 1,216 | 1,270
Trading: |  |
Unamortized Premium/(Discount) | 1,216 | 1,270
Farmer Mac Guaranteed USDA Securities | Farmer Mac Guaranteed Securities |  |
Held-to-maturity: |  |
Unpaid Principal Balance | 26,038 | 29,859
Amortized Cost | 25,995 | 29,885
Allowance for losses | 0 | 0
Unrealized Gains | 249 | 1,162
Unrealized Losses | (363) | 0
Fair Value | $ 25,881 | 31,047
Farmer Mac Guaranteed USDA Securities | USDA Securities: |  |
Trading: |  |
Trading securities, weighted-average yield | 5.06% |
Farmer Mac Guaranteed USDA Securities | Held-to-Maturity Securities | Farmer Mac Guaranteed Securities |  |
Held-to-maturity: |  |
Unamortized Premium/(Discount) | $ (43) | 26
Available-for-sale: |  |
Unamortized Premium/(Discount) | (43) | 26
Trading: |  |
Unamortized Premium/(Discount) | $ (43) | $ 26

X
- Definition Debt Securities, Available-for-Sale, Unpaid Principal Balance + References No definition available. + Details
Name: | agm_DebtSecuritiesAvailableforSaleUnpaidPrincipalBalance
Namespace Prefix: | agm_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Debt Securities, Held-to-Maturity, Amortized Cost, Excluding Accrued Interest, before Allowance for Credit Loss + References No definition available. + Details
Name: | agm_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss
Namespace Prefix: | agm_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Debt Securities, Held-to-maturity, Fair Value, Net of Allowance + References No definition available. + Details
Name: | agm_DebtSecuritiesHeldToMaturityFairValueNetOfAllowance
Namespace Prefix: | agm_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Debt Securities, Trading, Accrued Interest + References No definition available. + Details
Name: | agm_DebtSecuritiesTradingAccruedInterest
Namespace Prefix: | agm_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Debt Securities, Trading, Allowance for Credit Loss + References No definition available. + Details
Name: | agm_DebtSecuritiesTradingAllowanceForCreditLoss
Namespace Prefix: | agm_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Held-to-Maturity Unpaid Principal Balance + References No definition available. + Details
Name: | agm_HeldtoMaturityUnpaidPrincipalBalance
Namespace Prefix: | agm_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Trading Securities Unpaid Principal Balance + References No definition available. + Details
Name: | agm_TradingSecuritiesUnpaidPrincipalBalance
Namespace Prefix: | agm_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Trading Securities, Weighted-Average Yield + References No definition available. + Details
Name: | agm_TradingSecuritiesWeightedAverageYield
Namespace Prefix: | agm_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Amount, before tax, of unrealized gain in accumulated other comprehensive income (AOCI) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=123581744&loc=d3e27161-111563 + Details
Name: | us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount, before tax, of unrealized loss in accumulated other comprehensive income (AOCI) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=123581744&loc=d3e27161-111563 + Details
Name: | us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- References No definition available. + Details
Name: | us-gaap_AvailableForSaleSecuritiesAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount, after accumulated amortization, of debt discount (premium). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=124435984&loc=d3e28555-108399 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=124435984&loc=d3e28551-108399 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 4 -URI http://asc.fasb.org/extlink&oid=124435984&loc=d3e28567-108399 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 1A -URI http://asc.fasb.org/extlink&oid=124435984&loc=d3e28541-108399 Reference 5: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 20 -Section 50 -Paragraph 1D -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=123466505&loc=SL123495340-112611 Reference 6: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 55 -Paragraph 8 -URI http://asc.fasb.org/extlink&oid=114775985&loc=d3e28878-108400 + Details
Name: | us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount, after allowance for credit loss, of accrued interest on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 30 -Section 45 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=124258926&loc=SL82898722-210454 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 30 -Section 50 -Paragraph 3A -URI http://asc.fasb.org/extlink&oid=124269663&loc=SL120267853-210455 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 2A -URI http://asc.fasb.org/extlink&oid=123581744&loc=SL121698322-111563 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 30 -Section 50 -Paragraph 3B -URI http://asc.fasb.org/extlink&oid=124269663&loc=SL120267856-210455 + Details
Name: | us-gaap_DebtSecuritiesAvailableForSaleAccruedInterestAfterAllowanceForCreditLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount excluding accrued interest, of allowance for credit loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 30 -Section 45 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=124258926&loc=SL82898722-210454 + Details
Name: | us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostAllowanceForCreditLossExcludingAccruedInterest
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amortized cost excluding accrued interest, before allowance for credit loss, of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 30 -Section 45 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=124258926&loc=SL82898722-210454 + Details
Name: | us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount excluding accrued interest, of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 30 -Section 45 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=124258926&loc=SL82898722-210454 + Details
Name: | us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount, before allowance for credit loss, of accrued interest on investment in debt security measured at amortized cost (held-to-maturity). + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 20 -Section 50 -Paragraph 3B -URI http://asc.fasb.org/extlink&oid=124255953&loc=SL120267963-210447 + Details
Name: | us-gaap_DebtSecuritiesHeldToMaturityAccruedInterestBeforeAllowanceForCreditLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount, excluding accrued interest, of allowance for credit loss on investment in debt security measured at amortized cost (held-to-maturity). + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 20 -Section 45 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=124255206&loc=SL82895884-210446 + Details
Name: | us-gaap_DebtSecuritiesHeldToMaturityAllowanceForCreditLossExcludingAccruedInterest
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- References No definition available. + Details
Name: | us-gaap_DebtSecuritiesTradingAndAvailableForSaleAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of unrealized gain on investment in debt security measured at fair value with change in fair value recognized in net income (trading). + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 9 -Subparagraph (e) -URI http://asc.fasb.org/extlink&oid=123581744&loc=d3e27357-111563 + Details
Name: | us-gaap_DebtSecuritiesTradingUnrealizedGain
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of unrealized loss on investment in debt security measured at fair value with change in fair value recognized in net income (trading). + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 9 -Subparagraph (e) -URI http://asc.fasb.org/extlink&oid=123581744&loc=d3e27357-111563 + Details
Name: | us-gaap_DebtSecuritiesTradingUnrealizedLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Nominal or face amount used to calculate payment on derivative. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 1B -URI http://asc.fasb.org/extlink&oid=125515794&loc=SL5580258-113959 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 1A -Subparagraph (d) -URI http://asc.fasb.org/extlink&oid=125515794&loc=SL5579245-113959 + Details
Name: | us-gaap_DerivativeNotionalAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | na
Period Type: | instant

X
- References No definition available. + Details
Name: | us-gaap_HeldToMaturitySecuritiesAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of accumulated unrecognized gain on investment in debt security measured at amortized cost (held-to-maturity). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 5 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=123581744&loc=d3e27232-111563 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 5A -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=123581744&loc=SL120269820-111563 + Details
Name: | us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingGain
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of accumulated unrealized loss on investment in debt security measured at amortized cost (held-to-maturity). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 5 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=123581744&loc=d3e27232-111563 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 5A -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=123581744&loc=SL120269820-111563 + Details
Name: | us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of investment in debt security measured at fair value with change in fair value recognized in net income (trading) and investment in equity security measured at fair value with change in fair value recognized in net income (FV-NI). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03.4) -URI http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878 + Details
Name: | us-gaap_TradingSecurities
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amortized cost of investments in debt securities classified as trading. + References No definition available. + Details
Name: | us-gaap_TradingSecuritiesDebtAmortizedCost
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_USGovernmentAgenciesDebtSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_USTreasuryAndGovernmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_MortgageBackedSecuritiesIssuedByUSGovernmentSponsoredEnterprisesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_InformationByCategoryOfDebtSecurityAxis=us-gaap_HeldtomaturitySecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_InformationByCategoryOfDebtSecurityAxis=us-gaap_AvailableforsaleSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_InformationByCategoryOfDebtSecurityAxis=agm_DebtSecuritiesTradingMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByAssetClassAxis=us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementBusinessSegmentsAxis=agm_AgVantageMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementBusinessSegmentsAxis=agm_FarmerMacGuaranteedSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |