XML 112 R99.htm IDEA: XBRL DOCUMENT
v3.10.0.1

Fair Value Disclosures - Unobservable Input Reconciliation (Details) - Fair Value, Inputs, Level 3 [Member] - Fair Value, Measurements, Recurring [Member] - USD ($) $ in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2018 | Dec. 31, 2017 | Dec. 31, 2016
Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items] |  |  |
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset Transfers Into Level 3 |  | $ 7,041 |
Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward] |  |  |
Beginning Balance | $ 5,508,576 | 4,891,803 | $ 6,115,339
Purchases | 2,305,396 | 1,289,876 | 1,825,732
Sales | (127,850) | (155,744) | (124,760)
Settlements | (1,676,136) | (533,943) | (957,486)
Ending Balance | 6,003,211 | 5,508,576 | 4,891,803
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Gain (Loss) Included in Earnings | 19,448 | (7,649) | (19,478)
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Gain (Loss) Included in Other Comprehensive Income (Loss) | (26,710) | 17,192 | 65,607
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Transfers out of Level 3 |  |  | (2,013,151)
Investment Securities [Member] |  |  |
Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward] |  |  |
Beginning Balance |  | 17,730 | 45,415
Purchases |  |  | 0
Sales |  |  | (26,806)
Settlements |  |  | (2,213)
Ending Balance |  |  | 17,730
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Gain (Loss) Included in Earnings |  |  | 1,728
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Gain (Loss) Included in Other Comprehensive Income (Loss) |  |  | (394)
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Transfers out of Level 3 |  |  | 0
USDA Securities [Member] |  |  |
Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items] |  |  |
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset Transfers Into Level 3 |  | 0 |
Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward] |  |  |
Beginning Balance | 13,515 | 20,388 | 1,917,319
Purchases | 127,850 | 155,744 | 391,240
Sales | (127,850) | (155,744) | (97,954)
Settlements | (3,597) | (6,849) | (245,587)
Ending Balance | 9,999 | 13,515 | 20,388
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Gain (Loss) Included in Earnings | 81 | (24) | (262)
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Gain (Loss) Included in Other Comprehensive Income (Loss) | 0 | 0 | 35,959
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Transfers out of Level 3 |  |  | (1,980,327)
Debt Securities, Trading, Unrealized Loss |  |  | 300
Available-for-sale Securities [Member] | Investment Securities [Member] |  |  |
Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items] |  |  |
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset Transfers Into Level 3 |  | 7,041 |
Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward] |  |  |
Beginning Balance | 23,147 | 17,730 | 44,924
Purchases | 0 | 0 | 0
Sales | 0 | 0 | (26,806)
Settlements | (2,137) | (444) | 0
Ending Balance | 18,715 | 23,147 | 17,730
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Gain (Loss) Included in Earnings | (2,092) | 0 | 6
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Gain (Loss) Included in Other Comprehensive Income (Loss) | (203) | (1,180) | (394)
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Transfers out of Level 3 |  |  | 0
Available-for-sale Securities [Member] | Farmer Mac Guaranteed Securities [Member] |  |  |
Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items] |  |  |
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset Transfers Into Level 3 |  | 0 |
Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward] |  |  |
Beginning Balance | 5,471,914 | 4,853,685 | 4,152,605
Purchases | 2,177,546 | 1,134,132 | 1,434,492
Sales | 0 | 0 | 0
Settlements | (1,670,402) | (526,650) | (709,686)
Ending Balance | 5,974,497 | 5,471,914 | 4,853,685
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Gain (Loss) Included in Earnings | 21,459 | (7,625) | (20,944)
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Gain (Loss) Included in Other Comprehensive Income (Loss) | (26,507) | 18,372 | 30,042
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Transfers out of Level 3 | 0 | 0 | (32,824)
Available-for-sale Securities [Member] | USDA Securities [Member] |  |  |
Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items] |  |  |
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset Transfers Into Level 3 |  | 0 |
Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward] |  |  |
Beginning Balance | 0 | 0 | 1,888,344
Purchases | 127,850 | 155,744 | 391,240
Sales | (127,850) | (155,744) | (97,954)
Settlements | 0 | 0 | (237,262)
Ending Balance | 0 | 0 | 0
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Gain (Loss) Included in Earnings | 0 | 0 | 0
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Gain (Loss) Included in Other Comprehensive Income (Loss) |  | 0 | 35,959
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Transfers out of Level 3 | 0 | 0 | (1,980,327)
Trading Securities [Member] | Investment Securities [Member] |  |  |
Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward] |  |  |
Beginning Balance |  | 0 | 491
Purchases |  |  | 0
Sales |  |  | 0
Settlements |  |  | (2,213)
Ending Balance |  |  | 0
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Gain (Loss) Included in Earnings |  |  | 1,722
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Gain (Loss) Included in Other Comprehensive Income (Loss) |  |  | 0
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Transfers out of Level 3 |  |  | 0
Trading Securities [Member] | USDA Securities [Member] |  |  |
Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items] |  |  |
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset Transfers Into Level 3 |  | 0 |
Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward] |  |  |
Beginning Balance | 13,515 | 20,388 | 28,975
Purchases | 0 | 0 | 0
Sales | 0 | 0 | 0
Settlements | (3,597) | (6,849) | (8,325)
Ending Balance | 9,999 | 13,515 | 20,388
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Gain (Loss) Included in Earnings | 81 | (24) | (262)
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Gain (Loss) Included in Other Comprehensive Income (Loss) | 0 | 0 | 0
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Transfers out of Level 3 |  |  | 0
Farmer Mac Guaranteed Securities [Member] | Available-for-sale Securities [Member] | Farmer Mac Guaranteed Securities [Member] |  |  |
Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward] |  |  |
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Transfers out of Level 3 |  |  | (32,800)
Institutional Credit [Member] | Available-for-sale Securities [Member] | Farmer Mac Guaranteed Securities [Member] |  |  |
Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items] |  |  |
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset Transfers Into Level 3 |  | 0 |
Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward] |  |  |
Beginning Balance | 5,471,914 | 4,853,685 | 4,121,244
Purchases | 2,177,546 | 1,134,132 | 1,430,392
Sales | 0 | 0 | 0
Settlements | (1,670,402) | (526,650) | (706,446)
Ending Balance | 5,974,497 | 5,471,914 | 4,853,685
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Gain (Loss) Included in Earnings | 21,459 | (7,625) | (20,944)
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Gain (Loss) Included in Other Comprehensive Income (Loss) | (26,507) | 18,372 | 29,439
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Transfers out of Level 3 |  |  | 0
USDA Guarantees [Member] | Available-for-sale Securities [Member] | Farmer Mac Guaranteed Securities [Member] |  |  |
Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward] |  |  |
Beginning Balance |  | 0 | 31,361
Purchases |  |  | 4,100
Sales |  |  | 0
Settlements |  |  | (3,240)
Ending Balance |  |  | 0
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Gain (Loss) Included in Earnings |  |  | 0
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Gain (Loss) Included in Other Comprehensive Income (Loss) |  |  | 603
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Transfers out of Level 3 |  |  | (32,824)
USDA Guarantee [Member] | Available-for-sale Securities [Member] | Farmer Mac Guaranteed Securities [Member] |  |  |
Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward] |  |  |
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Transfers out of Level 3 |  |  | (2,000,000)
Floating Interest Rate [Member] | Available-for-sale Securities [Member] | Floating rate auction-rate certificates backed by Government guaranteed student loans |  |  |
Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items] |  |  |
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset Transfers Into Level 3 |  | 0 |
Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward] |  |  |
Beginning Balance | 18,814 | 17,730 | 44,924
Purchases | 0 | 0 | 0
Sales | 0 | 0 | (26,806)
Settlements | 0 | 0 | 0
Ending Balance | 18,715 | 18,814 | 17,730
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Gain (Loss) Included in Earnings | 0 | 0 | 6
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Gain (Loss) Included in Other Comprehensive Income (Loss) | (99) | 1,084 | (394)
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Transfers out of Level 3 |  |  | 0
Floating Interest Rate [Member] | Trading Securities [Member] | Asset-backed Securities [Member] |  |  |
Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward] |  |  |
Beginning Balance |  | 0 | 491
Purchases |  |  | 0
Sales |  |  | 0
Settlements |  |  | (2,213)
Ending Balance |  |  | 0
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Gain (Loss) Included in Earnings |  |  | 1,722
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Gain (Loss) Included in Other Comprehensive Income (Loss) |  |  | 0
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Transfers out of Level 3 |  |  | 0
Fixed Interest Rate [Member] | Available-for-sale Securities [Member] | Collateralized Mortgage Backed Securities [Member] |  |  |
Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items] |  |  |
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset Transfers Into Level 3 |  | 7,041 |
Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward] |  |  |
Beginning Balance | 4,333 | 0 |
Purchases | 0 | 0 |
Sales | 0 | 0 |
Settlements | (2,137) | (444) |
Ending Balance | 0 | 4,333 | $ 0
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Gain (Loss) Included in Earnings | (2,092) | 0 |
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Gain (Loss) Included in Other Comprehensive Income (Loss) | $ (104) | $ (2,264) |

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=82897076&loc=d3e27357-111563 + Details
Name: | us-gaap_DebtSecuritiesTradingUnrealizedLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period. + References No definition available. + Details
Name: | us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References No definition available. + Details
Name: | us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of gain (loss) recognized in the income statement for financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c)(1) -URI http://asc.fasb.org/extlink&oid=99377789&loc=d3e19207-110258 + Details
Name: | us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of gain (loss) recognized in other comprehensive income (loss) for financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c)(1a) -URI http://asc.fasb.org/extlink&oid=99377789&loc=d3e19207-110258 + Details
Name: | us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInOtherComprehensiveIncomeLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of purchases of financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c)(2) -URI http://asc.fasb.org/extlink&oid=99377789&loc=d3e19207-110258 + Details
Name: | us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchases
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of sale of financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c)(2) -URI http://asc.fasb.org/extlink&oid=99377789&loc=d3e19207-110258 + Details
Name: | us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSales
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of settlement of financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c)(2) -URI http://asc.fasb.org/extlink&oid=99377789&loc=d3e19207-110258 + Details
Name: | us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSettlements
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of transfer of financial instrument classified as an asset into level 3 of the fair value hierarchy. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c)(3) -URI http://asc.fasb.org/extlink&oid=99377789&loc=d3e19207-110258 + Details
Name: | us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersIntoLevel3
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of transfers of financial instrument classified as an asset out of level 3 of the fair value hierarchy. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c)(3) -URI http://asc.fasb.org/extlink&oid=99377789&loc=d3e19207-110258 + Details
Name: | us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersOutOfLevel3
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Fair value of financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=99377789&loc=d3e19207-110258 + Details
Name: | us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Details
Name: | us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel3Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByMeasurementFrequencyAxis=us-gaap_FairValueMeasurementsRecurringMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

X
- Details
Name: | us-gaap_FairValueByAssetClassAxis=us-gaap_USGovernmentAgenciesDebtSecuritiesMember
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_FairValueByAssetClassAxis=us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember
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_StatementBusinessSegmentsAxis=agm_FarmerMacGuaranteedSecuritiesMember
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_StatementBusinessSegmentsAxis=agm_USDAGuaranteesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

X
- Details
Name: | srt_ProductOrServiceAxis=agm_FloatingInterestRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

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

X
- Details
Name: | srt_ProductOrServiceAxis=agm_FixedInterestRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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