XML 50 R40.htm IDEA: XBRL DOCUMENT
v3.23.3

Farmer Mac Guaranteed Securities and USDA Securities - Schedule of On-Balance Sheet Securities (Details) - USD ($) $ in Thousands |  | 9 Months Ended
--- | --- | ---
Dec. 31, 2022 | Sep. 30, 2023
Trading: |  |
Debt Securities, Available-for-Sale, Accrued Interest, after Allowance for Credit Loss, Statement of Financial Position [Extensible Enumeration] | Accrued interest receivable (includes $10,666 and $12,514, respectively, related to consolidated trusts) | Accrued interest receivable (includes $10,666 and $12,514, respectively, related to consolidated trusts)
Farmer Mac Guaranteed Securities |  |
Held-to-maturity: |  |
Unpaid Principal Balance | $ 1,021,275 | $ 4,187,966
Amortized Cost | 1,021,213 | 4,157,610
Allowance for losses | (59) | (196)
Unrealized Gains | 355 | 4,525
Unrealized Losses | (54,954) | (50,583)
Fair Value | 966,555 | 4,111,356
Available-for-sale: |  |
Amortized cost |  | 5,536,437
Fair Value |  | 5,058,697
USDA Securities |  |
Held-to-maturity: |  |
Unpaid Principal Balance | 2,384,946 | 2,299,407
Amortized Cost | 2,409,834 | 2,322,355
Allowance for losses | 0 | 0
Unrealized Gains | 668 | 194
Unrealized Losses | (312,824) | (390,322)
Fair Value | 2,097,678 | 1,932,227
Trading: |  |
Unpaid Principal Balance | 1,770 | 1,314
Amortized Cost | 1,850 | 1,371
Allowance for losses | 0 | 0
Unrealized Gains | 0 | 0
Unrealized Losses | (83) | (69)
Fair Value | $ 1,767 | 1,302
Trading securities, weighted-average yield | 4.84% |
Farmer Mac Guaranteed Securities and USDA Securities |  |
Held-to-maturity: |  |
Unpaid Principal Balance | $ 3,406,221 | 6,487,373
Amortized Cost | 3,431,047 | 6,479,965
Allowance for losses | (59) | (196)
Unrealized Gains | 1,023 | 4,719
Unrealized Losses | (367,778) | (440,905)
Fair Value | 3,064,233 | 6,043,583
Farmer Mac Guaranteed Securities: |  |
Held-to-maturity: |  |
Amortized Cost | 1,021,154 | 4,157,414
Available-for-sale: |  |
Unpaid Principal Balance | 8,008,067 | 5,526,857
Amortized cost | 8,019,495 | 5,536,437
Allowance for losses | (546) | (374)
Unrealized Gains | 2,061 | 409
Unrealized Losses | (413,784) | (477,775)
Fair Value | 7,607,226 | 5,058,697
Held-to-Maturity Securities | Farmer Mac Guaranteed Securities |  |
Held-to-maturity: |  |
Unamortized Premium/(Discount) | (62) | (30,356)
Available-for-sale: |  |
Unamortized Premium/(Discount) | (62) | (30,356)
Trading: |  |
Unamortized Premium/(Discount) | (62) | (30,356)
Held-to-Maturity Securities | USDA Securities |  |
Held-to-maturity: |  |
Unamortized Premium/(Discount) | 24,888 | 22,948
Available-for-sale: |  |
Unamortized Premium/(Discount) | 24,888 | 22,948
Trading: |  |
Unamortized Premium/(Discount) | 24,888 | 22,948
Held-to-Maturity Securities | Farmer Mac Guaranteed Securities and USDA Securities |  |
Held-to-maturity: |  |
Unamortized Premium/(Discount) | 24,826 | (7,408)
Available-for-sale: |  |
Unamortized Premium/(Discount) | 24,826 | (7,408)
Trading: |  |
Unamortized Premium/(Discount) | 24,826 | (7,408)
Available-for-Sale Securities | Farmer Mac Guaranteed Securities: |  |
Held-to-maturity: |  |
Unamortized Premium/(Discount) | 11,428 | 9,580
Available-for-sale: |  |
Unamortized Premium/(Discount) | 11,428 | 9,580
Trading: |  |
Unamortized Premium/(Discount) | 11,428 | 9,580
Debt Securities, Trading | USDA Securities |  |
Held-to-maturity: |  |
Unamortized Premium/(Discount) | 80 | 57
Available-for-sale: |  |
Unamortized Premium/(Discount) | 80 | 57
Trading: |  |
Unamortized Premium/(Discount) | 80 | 57
Farmer Mac Guaranteed Securities | Farmer Mac Guaranteed Securities |  |
Available-for-sale: |  |
Fair Value | 7,800 | 10,000
Trading: |  |
Derivative, notional amount | 250,100 | 239,100
Farmer Mac Guaranteed Securities | Farmer Mac Guaranteed Securities: |  |
Available-for-sale: |  |
Unpaid Principal Balance | 0 | 0
Amortized cost | 10,622 | 9,580
Allowance for losses | 0 | 0
Unrealized Gains | 0 | 409
Unrealized Losses | (2,775) | 0
Fair Value | 7,847 | 9,989
Farmer Mac Guaranteed Securities | Available-for-Sale Securities | Farmer Mac Guaranteed Securities: |  |
Held-to-maturity: |  |
Unamortized Premium/(Discount) | 10,622 | 9,580
Available-for-sale: |  |
Unamortized Premium/(Discount) | 10,622 | 9,580
Trading: |  |
Unamortized Premium/(Discount) | 10,622 | 9,580
AgVantage |  |
Trading: |  |
Available-for-sale, accrued interest excluded | 51,500 | 53,300
Held-to-maturity, accrued interest excluded | 44,400 | 58,900
Trading securities, accrued interest excluded | 47 | 38
AgVantage | Farmer Mac Guaranteed Securities |  |
Held-to-maturity: |  |
Unpaid Principal Balance | 1,000,689 | 4,158,857
Amortized Cost | 1,000,594 | 4,128,468
Allowance for losses | (59) | (196)
Unrealized Gains | 353 | 4,525
Unrealized Losses | (54,098) | (49,221)
Fair Value | 946,790 | 4,083,576
AgVantage | Farmer Mac Guaranteed Securities: |  |
Available-for-sale: |  |
Unpaid Principal Balance | 8,008,067 | 5,526,857
Amortized cost | 8,008,873 | 5,526,857
Allowance for losses | (546) | (374)
Unrealized Gains | 2,061 | 0
Unrealized Losses | (411,009) | (477,775)
Fair Value | 7,599,379 | 5,048,708
AgVantage | Held-to-Maturity Securities | Farmer Mac Guaranteed Securities |  |
Held-to-maturity: |  |
Unamortized Premium/(Discount) | (95) | (30,389)
Available-for-sale: |  |
Unamortized Premium/(Discount) | (95) | (30,389)
Trading: |  |
Unamortized Premium/(Discount) | (95) | (30,389)
AgVantage | Available-for-Sale Securities | Farmer Mac Guaranteed Securities: |  |
Held-to-maturity: |  |
Unamortized Premium/(Discount) | 806 | 0
Available-for-sale: |  |
Unamortized Premium/(Discount) | 806 | 0
Trading: |  |
Unamortized Premium/(Discount) | 806 | 0
Farmer Mac Guaranteed USDA Securities | Farmer Mac Guaranteed Securities |  |
Held-to-maturity: |  |
Unpaid Principal Balance | 20,586 | 29,109
Amortized Cost | 20,619 | 29,142
Allowance for losses | 0 | 0
Unrealized Gains | 2 | 0
Unrealized Losses | (856) | (1,362)
Fair Value | 19,765 | $ 27,780
Farmer Mac Guaranteed USDA Securities | USDA Securities |  |
Trading: |  |
Trading securities, weighted-average yield |  | 5.50%
Farmer Mac Guaranteed USDA Securities | Held-to-Maturity Securities | Farmer Mac Guaranteed Securities |  |
Held-to-maturity: |  |
Unamortized Premium/(Discount) | 33 | $ 33
Available-for-sale: |  |
Unamortized Premium/(Discount) | 33 | 33
Trading: |  |
Unamortized Premium/(Discount) | $ 33 | $ 33

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-types1: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://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482925/835-30-45-2 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 1A -Publisher FASB -URI https://asc.fasb.org//1943274/2147482925/835-30-45-1A Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 4 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482925/835-30-45-4 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 3 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482925/835-30-45-3 Reference 5: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 55 -Paragraph 8 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482949/835-30-55-8 Reference 6: 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 Indicates line item in statement of financial position that includes accrued interest, after 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 50 -Paragraph 3A -Publisher FASB -URI https://asc.fasb.org//1943274/2147479106/326-30-50-3A + Details
Name: | us-gaap_DebtSecuritiesAvailableForSaleAccruedInterestAfterAllowanceForCreditLossStatementOfFinancialPositionExtensibleList
Namespace Prefix: | us-gaap_
Data Type: | enum2:enumerationSetItemType
Balance Type: | na
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/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 2: 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://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 Reference 2: 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 + 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://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 Reference 2: 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 + 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://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 2: 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 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03.4) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479853/942-210-S99-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/2147479440/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_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: | agm_DebtSecurityInvestmentCategoryAxis=agm_DebtSecuritiesHeldToMaturityMember
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: | agm_DebtSecurityInvestmentCategoryAxis=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: |