XML 52 R39.htm IDEA: XBRL DOCUMENT
v3.20.2

Farmer Mac Guaranteed Securities and USDA Securities (Details) - USD ($) $ in Thousands | Jun. 30, 2020 | Dec. 31, 2019 | Sep. 30, 2020
--- | --- | --- | ---
Held-to-maturity: |  |  |
Allowance for losses |  |  | $ (216)
Farmer Mac Guaranteed Securities and USDA Securities |  |  |
Held-to-maturity: |  |  |
Unpaid Principal Balance |  | $ 3,638,142 | 3,582,183
Amortized Cost |  | 3,679,611 | 3,611,634
Unrealized Gains |  | 70,495 | 132,716
Unrealized Losses |  | (922) | (1,498)
Fair Value |  |  | 3,742,636
Fair Value |  | 3,749,184 | 3,742,636
Farmer Mac Guaranteed Securities |  |  |
Held-to-maturity: |  |  |
Unpaid Principal Balance |  | 1,447,471 | 1,200,767
Amortized Cost |  | 1,447,451 | 1,200,786
Allowance for losses |  |  | (216)
Unrealized Gains |  | 16,139 | 26,995
Unrealized Losses |  | (164) | (100)
Fair Value |  |  | 1,227,465
Fair Value |  | 1,463,426 |
Available-for-sale: |  |  |
Amortized Cost |  |  | 7,150,606
Carrying value |  |  | 7,511,638
USDA Securities: |  |  |
Trading: |  |  |
Fair Value |  | 8,913 | 6,830
Held-to-Maturity Securities | Farmer Mac Guaranteed Securities and USDA Securities |  |  |
Held-to-maturity: |  |  |
Unamortized Premium/(Discount) |  | 41,469 | 29,451
Available-for-sale: |  |  |
Unamortized Premium/(Discount) |  | 41,469 | 29,451
Trading: |  |  |
Unamortized Premium/(Discount) |  | 41,469 | 29,451
Held-to-Maturity Securities | Farmer Mac Guaranteed Securities |  |  |
Held-to-maturity: |  |  |
Unamortized Premium/(Discount) |  | (20) | 19
Available-for-sale: |  |  |
Unamortized Premium/(Discount) |  | (20) | 19
Trading: |  |  |
Unamortized Premium/(Discount) |  | (20) | 19
AgVantage Securities |  |  |
Trading: |  |  |
Available-for-sale, accrued interest excluded |  |  | 32,700
Held-to-maturity, accrued interest excluded |  |  | 41,100
Trading securities, accrued interest excluded |  |  | 100
AgVantage Securities | Farmer Mac Guaranteed Securities |  |  |
Held-to-maturity: |  |  |
Unpaid Principal Balance |  | 1,415,584 | 1,164,353
Amortized Cost |  | 1,415,410 | 1,164,280
Allowance for losses |  |  | (216)
Unrealized Gains |  | 15,300 | 25,969
Unrealized Losses |  | (164) | (99)
Fair Value |  |  | 1,189,934
Fair Value |  | 1,430,546 |
Available-for-sale: |  |  |
Unpaid Principal Balance |  | 7,017,095 | 7,149,082
Amortized Cost |  | 7,016,971 | 7,150,606
Allowance for losses |  |  | (330)
Unrealized Gains |  | 161,316 | 394,280
Unrealized Losses |  | (35,262) | (32,918)
Carrying value |  | 7,143,025 | 7,511,638
AgVantage Securities | Held-to-Maturity Securities | Farmer Mac Guaranteed Securities |  |  |
Held-to-maturity: |  |  |
Unamortized Premium/(Discount) |  | (174) | (73)
Available-for-sale: |  |  |
Unamortized Premium/(Discount) |  | (174) | (73)
Trading: |  |  |
Unamortized Premium/(Discount) |  | (174) | (73)
AgVantage Securities | Available-for-Sale Securities | Farmer Mac Guaranteed Securities |  |  |
Held-to-maturity: |  |  |
Unamortized Premium/(Discount) |  | (124) | 1,524
Available-for-sale: |  |  |
Unamortized Premium/(Discount) |  | (124) | 1,524
Trading: |  |  |
Unamortized Premium/(Discount) |  | (124) | 1,524
USDA Guarantees |  |  |
Held-to-maturity: |  |  |
Unamortized Premium/(Discount) |  | (200) | (100)
Available-for-sale: |  |  |
Unamortized Premium/(Discount) |  | (200) | (100)
Trading: |  |  |
Unamortized Premium/(Discount) |  | (200) | (100)
USDA Guarantees | Farmer Mac Guaranteed Securities |  |  |
Held-to-maturity: |  |  |
Unpaid Principal Balance |  | 31,887 | 36,414
Amortized Cost |  | 32,041 | 36,506
Allowance for losses |  |  | 0
Unrealized Gains |  | 839 | 1,026
Unrealized Losses |  | 0 | (1)
Fair Value |  |  | 37,531
Fair Value |  | 32,880 |
USDA Guarantees | USDA Securities: |  |  |
Held-to-maturity: |  |  |
Unpaid Principal Balance |  | 2,190,671 | 2,381,416
Amortized Cost |  | 2,232,160 | 2,410,848
Allowance for losses |  |  | 0
Unrealized Gains |  | 54,356 | 105,721
Unrealized Losses |  | (758) | (1,398)
Fair Value |  |  | 2,515,171
Fair Value |  | 2,285,758 |
Trading: |  |  |
Unpaid Principal Balance |  | 8,400 | 6,617
Amortized Cost |  | 8,879 | 6,969
Allowance for losses |  |  | 0
Unrealized Gains | $ 10 | 61 |
Unrealized Losses | $ (149) | (27) |
Fair Value |  | $ 8,913 | $ 6,830
Trading securities, weighted-average yield |  | 5.20% | 5.09%
USDA Guarantees | Held-to-Maturity Securities | Farmer Mac Guaranteed Securities |  |  |
Held-to-maturity: |  |  |
Unamortized Premium/(Discount) |  | $ 154 | $ 92
Available-for-sale: |  |  |
Unamortized Premium/(Discount) |  | 154 | 92
Trading: |  |  |
Unamortized Premium/(Discount) |  | 154 | 92
USDA Guarantees | Held-to-Maturity Securities | USDA Securities: |  |  |
Held-to-maturity: |  |  |
Unamortized Premium/(Discount) |  | 41,489 | 29,432
Available-for-sale: |  |  |
Unamortized Premium/(Discount) |  | 41,489 | 29,432
Trading: |  |  |
Unamortized Premium/(Discount) |  | 41,489 | 29,432
USDA Guarantees | Trading Securities | USDA Securities: |  |  |
Held-to-maturity: |  |  |
Unamortized Premium/(Discount) |  | 479 | 352
Available-for-sale: |  |  |
Unamortized Premium/(Discount) |  | 479 | 352
Trading: |  |  |
Unamortized Premium/(Discount) |  | $ 479 | $ 352

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

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, Accrued Interest + References No definition available. + Details
Name: | agm_DebtSecuritiesHeldToMaturityAccruedInterest
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: | num: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=121645371&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=121645371&loc=d3e27161-111563 + Details
Name: | us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amortized cost 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 320 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=121645371&loc=d3e27161-111563 Reference 2: 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=121558606&loc=SL82898722-210454 + Details
Name: | us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis
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 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 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(6)) -URI http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878 Reference 2: 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=121558606&loc=SL82898722-210454 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 45 -Paragraph 1 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=121553693&loc=d3e26610-111562 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (aa) -URI http://asc.fasb.org/extlink&oid=121645371&loc=d3e27161-111563 + Details
Name: | us-gaap_AvailableForSaleSecuritiesDebtSecurities
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

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=119993939&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=119993939&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=119993939&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=119993939&loc=d3e28541-108399 Reference 5: 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 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 50 -Paragraph 9 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=121582814&loc=SL82922900-210455 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 30 -Section 50 -Paragraph 9 -Subparagraph (i) -URI http://asc.fasb.org/extlink&oid=121582814&loc=SL82922900-210455 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (aaa) -URI http://asc.fasb.org/extlink&oid=121645371&loc=d3e27161-111563 Reference 4: 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=121558606&loc=SL82898722-210454 + Details
Name: | us-gaap_DebtSecuritiesAvailableForSaleAllowanceForCreditLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of allowance for credit loss for 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 13 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=121599337&loc=SL82919249-210447 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 5 -Subparagraph (aaa) -URI http://asc.fasb.org/extlink&oid=121645371&loc=d3e27232-111563 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 20 -Section 45 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=121599878&loc=SL82895884-210446 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 20 -Section 50 -Paragraph 13 -Subparagraph (f) -URI http://asc.fasb.org/extlink&oid=121599337&loc=SL82919249-210447 + Details
Name: | us-gaap_DebtSecuritiesHeldToMaturityAllowanceForCreditLoss
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=121645371&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=121645371&loc=d3e27357-111563 + Details
Name: | us-gaap_DebtSecuritiesTradingUnrealizedLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

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=121645371&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=121645371&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=121645371&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=121645371&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, before other-than-temporary impairment (OTTI) accretion, of investment in debt securities measured at amortized cost (held-to-maturity). + References No definition available. + Details
Name: | us-gaap_HeldToMaturitySecuritiesAmortizedCostBeforeOtherThanTemporaryImpairment
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Fair value of 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 (aa) -URI http://asc.fasb.org/extlink&oid=121645371&loc=d3e27232-111563 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(6)) -URI http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 5A -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=121645371&loc=SL120269820-111563 + Details
Name: | us-gaap_HeldToMaturitySecuritiesFairValue
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_USTreasuryAndGovernmentMember
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: | us-gaap_FinancialInstrumentAxis=us-gaap_USGovernmentAgenciesDebtSecuritiesMember
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_StatementBusinessSegmentsAxis=agm_InstitutionalCreditMemberMember
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_StatementBusinessSegmentsAxis=agm_USDAGuaranteesMember
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: |