XML 52 R41.htm IDEA: XBRL DOCUMENT
v3.25.2

FARMER MAC GUARANTEED SECURITIES AND USDA SECURITIES - Schedule of On-Balance Sheet Securities (Details) - USD ($) $ in Thousands | 6 Months Ended | 12 Months Ended
--- | --- | ---
Jun. 30, 2025 | Dec. 31, 2024
Farmer Mac Guaranteed Securities |  |
Available-for-sale: |  |
Unpaid Principal Balance | $ 5,934,100 | $ 5,826,948
Amortized Cost | 5,942,469 | 5,835,658
Allowance for losses | (192) | (236)
Unrealized Gains | 23,843 | 6,600
Unrealized Losses | (234,617) | (327,476)
Fair Value | 5,731,503 | 5,514,546
Held-to-maturity: |  |
Amortized Cost | 2,130,995 | 2,717,688
Farmer Mac Guaranteed Securities | Available-for-Sale Securities |  |
Available-for-sale: |  |
Unamortized Premium/(Discount) | 8,369 | 8,710
Held-to-maturity: |  |
Unamortized Premium/(Discount) | 8,369 | 8,710
Trading: |  |
Unamortized Premium/(Discount) | 8,369 | 8,710
Farmer Mac Guaranteed Securities | Farmer Mac Guaranteed Securities |  |
Available-for-sale: |  |
Unpaid Principal Balance | 0 | 0
Amortized Cost | 8,369 | 8,710
Allowance for losses | 0 | 0
Unrealized Gains | 244 | 305
Unrealized Losses | 0 | 0
Fair Value | 8,613 | 9,015
Farmer Mac Guaranteed Securities | Farmer Mac Guaranteed Securities | Available-for-Sale Securities |  |
Available-for-sale: |  |
Unamortized Premium/(Discount) | 8,369 | 8,710
Held-to-maturity: |  |
Unamortized Premium/(Discount) | 8,369 | 8,710
Trading: |  |
Unamortized Premium/(Discount) | 8,369 | 8,710
Farmer Mac Guaranteed Securities |  |
Available-for-sale: |  |
Amortized Cost | 5,942,469 |
Fair Value | 5,731,503 |
Held-to-maturity: |  |
Unpaid Principal Balance | 2,156,886 | 2,744,767
Amortized Cost | 2,131,164 | 2,717,866
Allowance for losses | (169) | (178)
Unrealized Gains | 9,423 | 6,224
Unrealized Losses | (14,636) | (22,812)
Fair Value | 2,125,782 | 2,701,100
Farmer Mac Guaranteed Securities | Held-to-Maturity Securities |  |
Available-for-sale: |  |
Unamortized Premium/(Discount) | (25,722) | (26,901)
Held-to-maturity: |  |
Unamortized Premium/(Discount) | (25,722) | (26,901)
Trading: |  |
Unamortized Premium/(Discount) | (25,722) | (26,901)
Farmer Mac Guaranteed Securities | Farmer Mac Guaranteed Securities |  |
Available-for-sale: |  |
Fair Value | 8,600 | 9,000
Trading: |  |
Derivative, notional amount | 214,200 | 228,000
USDA Securities |  |
Held-to-maturity: |  |
Unpaid Principal Balance | 2,388,895 | 2,351,334
Amortized Cost | 2,406,638 | 2,370,534
Allowance for losses | 0 | 0
Unrealized Gains | 6,144 | 180
Unrealized Losses | (210,212) | (258,190)
Fair Value | 2,202,570 | 2,112,524
Trading: |  |
Unpaid Principal Balance | 552 | 814
Amortized Cost | 585 | 856
Allowance for losses | 0 | 0
Unrealized Gains | 0 | 0
Unrealized Losses | (25) | (38)
Fair Value | $ 560 | $ 818
Trading securities, weighted-average yield | 5.63% | 5.47%
USDA Securities | Held-to-Maturity Securities |  |
Available-for-sale: |  |
Unamortized Premium/(Discount) | $ 17,743 | $ 19,200
Held-to-maturity: |  |
Unamortized Premium/(Discount) | 17,743 | 19,200
Trading: |  |
Unamortized Premium/(Discount) | 17,743 | 19,200
USDA Securities | Trading Securities |  |
Available-for-sale: |  |
Unamortized Premium/(Discount) | 33 | 42
Held-to-maturity: |  |
Unamortized Premium/(Discount) | 33 | 42
Trading: |  |
Unamortized Premium/(Discount) | 33 | 42
Farmer Mac Guaranteed Securities and USDA Securities |  |
Held-to-maturity: |  |
Unpaid Principal Balance | 4,545,781 | 5,096,101
Amortized Cost | 4,537,802 | 5,088,400
Allowance for losses | (169) | (178)
Unrealized Gains | 15,567 | 6,404
Unrealized Losses | (224,848) | (281,002)
Fair Value | 4,328,352 | 4,813,624
Farmer Mac Guaranteed Securities and USDA Securities | Held-to-Maturity Securities |  |
Available-for-sale: |  |
Unamortized Premium/(Discount) | (7,979) | (7,701)
Held-to-maturity: |  |
Unamortized Premium/(Discount) | (7,979) | (7,701)
Trading: |  |
Unamortized Premium/(Discount) | (7,979) | (7,701)
AgVantage |  |
Trading: |  |
Available-for-sale, accrued interest excluded | 63,900 | 57,500
Held-to-maturity, accrued interest excluded | 46,600 | 59,800
AgVantage | Farmer Mac Guaranteed Securities |  |
Available-for-sale: |  |
Unpaid Principal Balance | 5,934,100 | 5,826,948
Amortized Cost | 5,934,100 | 5,826,948
Allowance for losses | (192) | (236)
Unrealized Gains | 23,599 | 6,295
Unrealized Losses | (234,617) | (327,476)
Fair Value | 5,722,890 | 5,505,531
AgVantage | Farmer Mac Guaranteed Securities | Available-for-Sale Securities |  |
Available-for-sale: |  |
Unamortized Premium/(Discount) | 0 | 0
Held-to-maturity: |  |
Unamortized Premium/(Discount) | 0 | 0
Trading: |  |
Unamortized Premium/(Discount) | 0 | 0
AgVantage | Farmer Mac Guaranteed Securities |  |
Held-to-maturity: |  |
Unpaid Principal Balance | 2,087,686 | 2,694,492
Amortized Cost | 2,061,940 | 2,667,564
Allowance for losses | (169) | (178)
Unrealized Gains | 8,740 | 5,978
Unrealized Losses | (13,435) | (21,592)
Fair Value | 2,057,076 | 2,651,772
AgVantage | Farmer Mac Guaranteed Securities | Held-to-Maturity Securities |  |
Available-for-sale: |  |
Unamortized Premium/(Discount) | (25,746) | (26,928)
Held-to-maturity: |  |
Unamortized Premium/(Discount) | (25,746) | (26,928)
Trading: |  |
Unamortized Premium/(Discount) | (25,746) | (26,928)
Farmer Mac Guaranteed USDA Securities | Farmer Mac Guaranteed Securities |  |
Held-to-maturity: |  |
Unpaid Principal Balance | 69,200 | 50,275
Amortized Cost | 69,224 | 50,302
Allowance for losses | 0 | 0
Unrealized Gains | 683 | 246
Unrealized Losses | (1,201) | (1,220)
Fair Value | 68,706 | 49,328
Farmer Mac Guaranteed USDA Securities | Farmer Mac Guaranteed Securities | Held-to-Maturity Securities |  |
Available-for-sale: |  |
Unamortized Premium/(Discount) | 24 | 27
Held-to-maturity: |  |
Unamortized Premium/(Discount) | 24 | 27
Trading: |  |
Unamortized Premium/(Discount) | $ 24 | $ 27

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, 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://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481800/320-10-50-2 + 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://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481800/320-10-50-2 + 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://www.xbrl.org/2009/role/commonPracticeRef -Topic 835 -SubTopic 30 -Name Accounting Standards Codification -Section 45 -Paragraph 1A -Publisher FASB -URI https://asc.fasb.org/1943274/2147482925/835-30-45-1A Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 835 -SubTopic 30 -Name Accounting Standards Codification -Section 45 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482925/835-30-45-2 Reference 3: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 835 -SubTopic 30 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482900/835-30-50-1 Reference 4: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1D -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481139/470-20-50-1D + 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 -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2A -Publisher FASB -URI https://asc.fasb.org/1943274/2147481800/320-10-50-2A Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 30 -Name Accounting Standards Codification -Section 45 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479130/326-30-45-1 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 30 -Name Accounting Standards Codification -Section 50 -Paragraph 3A -Publisher FASB -URI https://asc.fasb.org/1943274/2147479106/326-30-50-3A Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 30 -Name Accounting Standards Codification -Section 50 -Paragraph 3B -Publisher FASB -URI https://asc.fasb.org/1943274/2147479106/326-30-50-3B + 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 -Topic 326 -SubTopic 30 -Name Accounting Standards Codification -Section 45 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479130/326-30-45-1 + 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 -Topic 326 -SubTopic 30 -Name Accounting Standards Codification -Section 45 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479130/326-30-45-1 + 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 -Topic 326 -SubTopic 30 -Name Accounting Standards Codification -Section 45 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479130/326-30-45-1 + 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 -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 3B -Publisher FASB -URI https://asc.fasb.org/1943274/2147479319/326-20-50-3B + 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 -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 45 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479344/326-20-45-1 + 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 -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 9 -Subparagraph (e) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481800/320-10-50-9 + 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 -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 9 -Subparagraph (e) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481800/320-10-50-9 + 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/2003/role/exampleRef -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 181 -Publisher FASB -URI https://asc.fasb.org/1943274/2147480401/815-10-55-181 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 1B -Publisher FASB -URI https://asc.fasb.org/1943274/2147480434/815-10-50-1B Reference 3: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 1A -Subparagraph (d) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480434/815-10-50-1A + 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/otherTransitionRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 5 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481800/320-10-50-5 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 5A -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481800/320-10-50-5A + 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/otherTransitionRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 5 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481800/320-10-50-5 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 5A -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481800/320-10-50-5A + 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 -Topic 942 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(4)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147478546/942-210-S99-1 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(2)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 Reference 3: http://www.xbrl.org/2003/role/exampleRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section 45 -Paragraph 1 -Subparagraph (f) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483467/210-10-45-1 + 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 Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 944 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03(a)(1)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147478777/944-210-S99-1 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(2)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 + 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_MortgageBackedSecuritiesIssuedByUSGovernmentSponsoredEnterprisesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | agm_DebtSecurityInvestmentCategoryAxis=agm_DebtSecuritiesAvailableForSaleMember
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_FinancialInstrumentAxis=us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | agm_DebtSecurityInvestmentCategoryAxis=agm_DebtSecuritiesHeldToMaturityMember
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: | agm_DebtSecurityInvestmentCategoryAxis=agm_DebtSecuritiesTradingMember
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_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: |