XML 72 R60.htm IDEA: XBRL DOCUMENT
v3.19.2

Fair Value Disclosures - Fair Value Measurements, Recurring and Nonrecurring (Details) - USD ($) $ in Thousands | Jun. 30, 2019 | Dec. 31, 2018
--- | --- | ---
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Financial derivatives | $ 3,135 | $ 5,709
Financial derivatives | 73,401 | 27,385
Loans held for investment | 6,316,005 | 5,515,052
REO | 1,770 | 128
Fair Value, Measurements, Recurring [Member] |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Trading | 9,201 | 9,999
Financial derivatives | 7,560 | 7,487
Total Assets at fair value | 9,974,933 | 8,209,835
Financial derivatives | 27,429 | 19,633
Total Liabilities at fair value | 27,429 | 19,633
Fair Value, Measurements, Recurring [Member] | Fair Value, Inputs, Level 1 [Member] |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Trading | 0 | 0
Financial derivatives | 0 | 0
Total Assets at fair value | 1,273,766 | 792,602
Financial derivatives | 188 | 188
Total Liabilities at fair value | 188 | 188
Fair Value, Measurements, Recurring [Member] | Fair Value, Inputs, Level 2 [Member] |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Trading | 0 | 0
Financial derivatives | 7,560 | 7,487
Total Assets at fair value | 1,637,090 | 1,414,022
Financial derivatives | 27,241 | 19,445
Total Liabilities at fair value | 27,241 | 19,445
Fair Value, Measurements, Recurring [Member] | Fair Value, Inputs, Level 3 [Member] |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Trading | 9,201 | 9,999
Financial derivatives | 0 | 0
Total Assets at fair value | 7,064,077 | 6,003,211
Financial derivatives | 0 | 0
Total Liabilities at fair value | 0 | 0
Investment Securities [Member] | Available-for-sale Securities [Member] | Fair Value, Measurements, Recurring [Member] |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investment securities fair value | 2,922,504 | 2,217,852
Investment Securities [Member] | Available-for-sale Securities [Member] | Fair Value, Measurements, Recurring [Member] | Fair Value, Inputs, Level 1 [Member] |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investment securities fair value | 1,273,766 | 792,602
Investment Securities [Member] | Available-for-sale Securities [Member] | Fair Value, Measurements, Recurring [Member] | Fair Value, Inputs, Level 2 [Member] |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investment securities fair value | 1,629,530 | 1,406,535
Investment Securities [Member] | Available-for-sale Securities [Member] | Fair Value, Measurements, Recurring [Member] | Fair Value, Inputs, Level 3 [Member] |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investment securities fair value | 19,208 | 18,715
Farmer Mac Guaranteed Securities [Member] | Available-for-sale Securities [Member] | Institutional Credit [Member] | Fair Value, Measurements, Recurring [Member] |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investment securities fair value | 7,035,668 | 5,974,497
Farmer Mac Guaranteed Securities [Member] | Available-for-sale Securities [Member] | Institutional Credit [Member] | Fair Value, Measurements, Recurring [Member] | Fair Value, Inputs, Level 1 [Member] |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investment securities fair value | 0 | 0
Farmer Mac Guaranteed Securities [Member] | Available-for-sale Securities [Member] | Institutional Credit [Member] | Fair Value, Measurements, Recurring [Member] | Fair Value, Inputs, Level 2 [Member] |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investment securities fair value | 0 | 0
Farmer Mac Guaranteed Securities [Member] | Available-for-sale Securities [Member] | Institutional Credit [Member] | Fair Value, Measurements, Recurring [Member] | Fair Value, Inputs, Level 3 [Member] |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investment securities fair value | 7,035,668 | 5,974,497
Farmer Mac Guaranteed Securities [Member] | Available-for-sale Securities [Member] | USDA Guarantees [Member] | Fair Value, Measurements, Recurring [Member] |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investment securities fair value | 7,035,668 | 5,974,497
Farmer Mac Guaranteed Securities [Member] | Available-for-sale Securities [Member] | USDA Guarantees [Member] | Fair Value, Measurements, Recurring [Member] | Fair Value, Inputs, Level 1 [Member] |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investment securities fair value | 0 | 0
Farmer Mac Guaranteed Securities [Member] | Available-for-sale Securities [Member] | USDA Guarantees [Member] | Fair Value, Measurements, Recurring [Member] | Fair Value, Inputs, Level 2 [Member] |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investment securities fair value | 0 | 0
Farmer Mac Guaranteed Securities [Member] | Available-for-sale Securities [Member] | USDA Guarantees [Member] | Fair Value, Measurements, Recurring [Member] | Fair Value, Inputs, Level 3 [Member] |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investment securities fair value | 7,035,668 | 5,974,497
USDA Securities [Member] | Fair Value, Measurements, Recurring [Member] |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Trading | 9,201 | 9,999
USDA Securities [Member] | Fair Value, Measurements, Recurring [Member] | Fair Value, Inputs, Level 1 [Member] |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Trading | 0 | 0
USDA Securities [Member] | Fair Value, Measurements, Recurring [Member] | Fair Value, Inputs, Level 2 [Member] |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Trading | 0 | 0
USDA Securities [Member] | Fair Value, Measurements, Recurring [Member] | Fair Value, Inputs, Level 3 [Member] |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Trading | 9,201 | 9,999
Floating Interest Rate [Member] | Floating rate auction-rate certificates backed by Government guaranteed student loans | Available-for-sale Securities [Member] | Fair Value, Measurements, Recurring [Member] |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investment securities fair value | 19,208 | 18,715
Floating Interest Rate [Member] | Floating rate auction-rate certificates backed by Government guaranteed student loans | Available-for-sale Securities [Member] | Fair Value, Measurements, Recurring [Member] | Fair Value, Inputs, Level 1 [Member] |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investment securities fair value | 0 | 0
Floating Interest Rate [Member] | Floating rate auction-rate certificates backed by Government guaranteed student loans | Available-for-sale Securities [Member] | Fair Value, Measurements, Recurring [Member] | Fair Value, Inputs, Level 2 [Member] |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investment securities fair value | 0 | 0
Floating Interest Rate [Member] | Floating rate auction-rate certificates backed by Government guaranteed student loans | Available-for-sale Securities [Member] | Fair Value, Measurements, Recurring [Member] | Fair Value, Inputs, Level 3 [Member] |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investment securities fair value | 19,208 | 18,715
Floating Interest Rate [Member] | Asset-backed Securities [Member] | Available-for-sale Securities [Member] | Fair Value, Measurements, Recurring [Member] |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investment securities fair value | 25,802 | 28,678
Floating Interest Rate [Member] | Asset-backed Securities [Member] | Available-for-sale Securities [Member] | Fair Value, Measurements, Recurring [Member] | Fair Value, Inputs, Level 1 [Member] |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investment securities fair value | 0 | 0
Floating Interest Rate [Member] | Asset-backed Securities [Member] | Available-for-sale Securities [Member] | Fair Value, Measurements, Recurring [Member] | Fair Value, Inputs, Level 2 [Member] |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investment securities fair value | 25,802 | 28,678
Floating Interest Rate [Member] | Asset-backed Securities [Member] | Available-for-sale Securities [Member] | Fair Value, Measurements, Recurring [Member] | Fair Value, Inputs, Level 3 [Member] |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investment securities fair value | 0 | 0
Floating Interest Rate [Member] | Government/GSE Guaranteed Mortgage Backed Securities [Member] | Available-for-sale Securities [Member] | Fair Value, Measurements, Recurring [Member] |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investment securities fair value | 1,603,370 | 1,377,454
Floating Interest Rate [Member] | Government/GSE Guaranteed Mortgage Backed Securities [Member] | Available-for-sale Securities [Member] | Fair Value, Measurements, Recurring [Member] | Fair Value, Inputs, Level 1 [Member] |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investment securities fair value | 0 | 0
Floating Interest Rate [Member] | Government/GSE Guaranteed Mortgage Backed Securities [Member] | Available-for-sale Securities [Member] | Fair Value, Measurements, Recurring [Member] | Fair Value, Inputs, Level 2 [Member] |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investment securities fair value | 1,603,370 | 1,377,454
Floating Interest Rate [Member] | Government/GSE Guaranteed Mortgage Backed Securities [Member] | Available-for-sale Securities [Member] | Fair Value, Measurements, Recurring [Member] | Fair Value, Inputs, Level 3 [Member] |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investment securities fair value | 0 | 0
Fixed Interest Rate [Member] | Government/GSE Guaranteed Mortgage Backed Securities [Member] | Available-for-sale Securities [Member] | Fair Value, Measurements, Recurring [Member] |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investment securities fair value | 358 | 403
Fixed Interest Rate [Member] | Government/GSE Guaranteed Mortgage Backed Securities [Member] | Available-for-sale Securities [Member] | Fair Value, Measurements, Recurring [Member] | Fair Value, Inputs, Level 1 [Member] |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investment securities fair value | 0 | 0
Fixed Interest Rate [Member] | Government/GSE Guaranteed Mortgage Backed Securities [Member] | Available-for-sale Securities [Member] | Fair Value, Measurements, Recurring [Member] | Fair Value, Inputs, Level 2 [Member] |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investment securities fair value | 358 | 403
Fixed Interest Rate [Member] | Government/GSE Guaranteed Mortgage Backed Securities [Member] | Available-for-sale Securities [Member] | Fair Value, Measurements, Recurring [Member] | Fair Value, Inputs, Level 3 [Member] |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investment securities fair value | 0 | 0
Fixed Interest Rate [Member] | US Treasury Securities [Member] | Available-for-sale Securities [Member] | Fair Value, Measurements, Recurring [Member] |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investment securities fair value | 1,273,766 | 792,602
Fixed Interest Rate [Member] | US Treasury Securities [Member] | Available-for-sale Securities [Member] | Fair Value, Measurements, Recurring [Member] | Fair Value, Inputs, Level 1 [Member] |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investment securities fair value | 1,273,766 | 792,602
Fixed Interest Rate [Member] | US Treasury Securities [Member] | Available-for-sale Securities [Member] | Fair Value, Measurements, Recurring [Member] | Fair Value, Inputs, Level 2 [Member] |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investment securities fair value | 0 | 0
Fixed Interest Rate [Member] | US Treasury Securities [Member] | Available-for-sale Securities [Member] | Fair Value, Measurements, Recurring [Member] | Fair Value, Inputs, Level 3 [Member] |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |
Investment securities fair value | $ 0 | $ 0

X
- Definition Fair value portion of probable future economic benefits obtained or controlled by an entity as a result of past transactions or events. + 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 (a) -URI http://asc.fasb.org/extlink&oid=99377789&loc=d3e19207-110258 + Details
Name: | us-gaap_AssetsFairValueDisclosure
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Fair value, after the effects of master netting arrangements, of a financial asset or other contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset. Includes assets not subject to a master netting arrangement and not elected to be offset. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 20 -Section 55 -Paragraph 10 -URI http://asc.fasb.org/extlink&oid=99393222&loc=SL20226008-175313 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 825 -SubTopic 10 -Section 50 -Paragraph 10 -URI http://asc.fasb.org/extlink&oid=109250915&loc=d3e13433-108611 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 20 -Section 50 -Paragraph 3 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=51824906&loc=SL20225862-175312 + Details
Name: | us-gaap_DerivativeAssets
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Fair value, after the effects of master netting arrangements, of a financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset. Includes liabilities not subject to a master netting arrangement and not elected to be offset. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 20 -Section 50 -Paragraph 3 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=51824906&loc=SL20225862-175312 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 825 -SubTopic 10 -Section 50 -Paragraph 10 -URI http://asc.fasb.org/extlink&oid=109250915&loc=d3e13433-108611 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 20 -Section 55 -Paragraph 10 -URI http://asc.fasb.org/extlink&oid=99393222&loc=SL20226008-175313 + Details
Name: | us-gaap_DerivativeLiabilities
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

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_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Fair value portion of investment securities, including, but not limited to, marketable securities, derivative financial instruments, and investments accounted for under the equity method. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=99377789&loc=d3e19207-110258 + Details
Name: | us-gaap_InvestmentsFairValueDisclosure
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Fair value of financial and nonfinancial obligations. + 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 (a) -URI http://asc.fasb.org/extlink&oid=99377789&loc=d3e19207-110258 + Details
Name: | us-gaap_LiabilitiesFairValueDisclosure
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount after allowance and deduction of deferred interest and fees, unamortized costs and premiums and discounts from face amounts, of loans and leases held in portfolio, including but not limited to, commercial and consumer loans. Excludes loans and leases covered under loss sharing agreements and loans held for sale. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 310 -SubTopic 10 -Section 45 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=82891408&loc=d3e4428-111522 Reference 2: 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.7) -URI http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878 + Details
Name: | us-gaap_LoansAndLeasesReceivableNetReportedAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Carrying amount as of the balance sheet date of land and buildings obtained through foreclosure proceedings or defeasance in full or partial satisfaction of a debt arrangement. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 310 -SubTopic 10 -Section 50 -Paragraph 11 -URI http://asc.fasb.org/extlink&oid=84173941&loc=d3e5162-111524 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 310 -SubTopic 10 -Section 45 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=82891408&loc=d3e4437-111522 + Details
Name: | us-gaap_RealEstateAcquiredThroughForeclosure
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). + References Reference 1: 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=109979856&loc=d3e26610-111562 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 45 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=109979856&loc=d3e26610-111562 + Details
Name: | us-gaap_TradingSecuritiesDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

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

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

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

X
- Details
Name: | us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel3Member
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_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_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_FairValueByAssetClassAxis=us-gaap_USGovernmentAgenciesDebtSecuritiesMember
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: | us-gaap_FairValueByAssetClassAxis=us-gaap_MortgageBackedSecuritiesMember
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_USTreasurySecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |