XML 40 R30.htm IDEA: XBRL DOCUMENT
v3.22.2

Summary of Significant Accounting Policies - Consolidation of Variable Interest Entities (Details) - USD ($) $ in Thousands | Jun. 30, 2022 | Dec. 31, 2021
--- | --- | ---
Variable Interest Entity [Line Items] |  |
Loans held for investment, at amortized cost | $ 8,911,475 | $ 8,314,096
Debt securities of consolidated trusts held by third parties | 23,838,159 | 22,758,533
Farmer Mac Guaranteed Securities |  |
Variable Interest Entity [Line Items] |  |
Available-for-sale, at fair value | 6,450,212 | 6,328,559
Investment securities: |  |
Variable Interest Entity [Line Items] |  |
Available-for-sale, at fair value | 4,246,012 | 3,836,391
On-Balance Sheet: | Consolidated VIE |  |
Variable Interest Entity [Line Items] |  |
Loans held for investment, at amortized cost | 834,941 | 948,623
Debt securities of consolidated trusts held by third parties | 866,107 | 981,379
On-Balance Sheet: | Farmer Mac Guaranteed Securities | Unconsolidated VIE |  |
Variable Interest Entity [Line Items] |  |
Available-for-sale, at fair value | 31,425 | 42,298
Maximum exposure to loss | 33,200 | 42,155
On-Balance Sheet: | Investment securities: | Unconsolidated VIE |  |
Variable Interest Entity [Line Items] |  |
Available-for-sale, at fair value | 2,720,813 | 2,258,219
Maximum exposure to loss | 2,813,424 | 2,246,272
Off-Balance Sheet: | Unconsolidated VIE |  |
Variable Interest Entity [Line Items] |  |
Maximum exposure to loss | 523,580 | 578,358
Agricultural Finance |  |
Variable Interest Entity [Line Items] |  |
Loans held for investment, at amortized cost | 7,198,862 | 6,846,993
Borrower remittances | 31,200 | 32,800
Operating Segments | Agricultural Finance | On-Balance Sheet: | Consolidated VIE |  |
Variable Interest Entity [Line Items] |  |
Loans held for investment, at amortized cost | 834,941 | 948,623
Debt securities of consolidated trusts held by third parties | 866,107 | 981,379
Operating Segments | Agricultural Finance | On-Balance Sheet: | Farmer Mac Guaranteed Securities | Unconsolidated VIE |  |
Variable Interest Entity [Line Items] |  |
Available-for-sale, at fair value | 31,425 | 42,298
Maximum exposure to loss | 33,200 | 42,155
Operating Segments | Agricultural Finance | On-Balance Sheet: | Investment securities: | Unconsolidated VIE |  |
Variable Interest Entity [Line Items] |  |
Available-for-sale, at fair value | 0 | 0
Maximum exposure to loss | 0 | 0
Operating Segments | Agricultural Finance | Off-Balance Sheet: | Unconsolidated VIE |  |
Variable Interest Entity [Line Items] |  |
Maximum exposure to loss | 523,580 | 578,358
Corporate | On-Balance Sheet: | Consolidated VIE |  |
Variable Interest Entity [Line Items] |  |
Loans held for investment, at amortized cost | 0 | 0
Debt securities of consolidated trusts held by third parties | 0 | 0
Corporate | On-Balance Sheet: | Farmer Mac Guaranteed Securities | Unconsolidated VIE |  |
Variable Interest Entity [Line Items] |  |
Available-for-sale, at fair value | 0 | 0
Maximum exposure to loss | 0 | 0
Corporate | On-Balance Sheet: | Investment securities: | Unconsolidated VIE |  |
Variable Interest Entity [Line Items] |  |
Available-for-sale, at fair value | 2,720,813 | 2,258,219
Maximum exposure to loss | 2,813,424 | 2,246,272
Corporate | Off-Balance Sheet: | Unconsolidated VIE |  |
Variable Interest Entity [Line Items] |  |
Maximum exposure to loss | $ 0 | $ 0

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 -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 30 -Section 45 -Paragraph 1 -URI https://asc.fasb.org/extlink&oid=124258926&loc=SL82898722-210454 + Details
Name: | us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amortized cost excluding accrued interest, before allowance for credit loss, of financing receivable. Excludes net investment in lease. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 20 -Section 50 -Paragraph 5 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=124255953&loc=SL82919230-210447 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 20 -Section 45 -Paragraph 1 -URI https://asc.fasb.org/extlink&oid=124255206&loc=SL82895884-210446 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 20 -Section 50 -Paragraph 3B -URI https://asc.fasb.org/extlink&oid=124255953&loc=SL120267963-210447 + Details
Name: | us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount, excluding unamortized premium (discount) and debt issuance cost, of long-term debt. Excludes lease obligation. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 20 -Section 50 -Paragraph 4 -Subparagraph (b)(3) -URI https://asc.fasb.org/extlink&oid=123466204&loc=SL6031897-161870 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 20 -Section 55 -Paragraph 69C -URI https://asc.fasb.org/extlink&oid=123466577&loc=SL123495737-112612 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03(a)(16)) -URI https://asc.fasb.org/extlink&oid=126734703&loc=d3e572229-122910 Reference 4: http://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 20 -Section 55 -Paragraph 69B -URI https://asc.fasb.org/extlink&oid=123466577&loc=SL123495735-112612 Reference 5: 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(16)) -URI https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 20 -Section 50 -Paragraph 1D -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=123466505&loc=SL123495340-112611 Reference 7: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)) -URI https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_LongTermDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of liabilities classified as other. + 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.15) -URI https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878 + Details
Name: | us-gaap_OtherLiabilities
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The reporting entity's maximum amount of exposure to loss as a result of its involvement with the Variable Interest Entity (VIE). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 810 -SubTopic 10 -Section 50 -Paragraph 6 -Subparagraph (c) -URI https://asc.fasb.org/extlink&oid=123419778&loc=d3e5747-111685 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 810 -SubTopic 10 -Section 50 -Paragraph 4 -Subparagraph b -URI https://asc.fasb.org/extlink&oid=123419778&loc=d3e5728-111685 + Details
Name: | us-gaap_VariableInterestEntityEntityMaximumLossExposureAmount
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_VariableInterestEntityLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_MortgageBackedSecuritiesIssuedByUSGovernmentSponsoredEnterprisesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

X
- Details
Name: | us-gaap_BalanceSheetLocationAxis=agm_OnBalanceSheetMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_ConsolidatedEntitiesAxis=us-gaap_VariableInterestEntityPrimaryBeneficiaryMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_ConsolidatedEntitiesAxis=us-gaap_VariableInterestEntityNotPrimaryBeneficiaryMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_BalanceSheetLocationAxis=agm_OffBalanceSheetMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

X
- Details
Name: | srt_ConsolidationItemsAxis=us-gaap_OperatingSegmentsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_ConsolidationItemsAxis=us-gaap_CorporateNonSegmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |