XML 55 R45.htm IDEA: XBRL DOCUMENT
v3.22.1

Financial Derivatives - Schedule of Net Income/(Expense) Recognized (Details) - USD ($) $ in Thousands | 3 Months Ended
--- | ---
Mar. 31, 2022 | Mar. 31, 2021
Derivative Instruments, Gain (Loss) [Line Items] |  |
Investments and cash equivalents | $ 5,716 | $ 5,529
Interest Income Farmer Mac Guaranteed Securities and USDA Securities | 39,257 | 42,404
Interest Income Loans | 67,247 | 59,494
Total interest expense | (50,345) | (54,176)
Gains on financial derivatives | 16,074 | 4,293
Total | 77,949 | 52,015
Expense recognized on cash flow hedges | 20,491 | 8,837
Fair value hedges: |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |
Recognized on hedged items | (136,167) | (284,049)
Gains/(losses) on fair value hedging relationships | 2,364 | 345
Cash flow hedges: |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |
Premium/discount amortization recognized on hedged items | (13) | (7)
Interest settlements reclassified from AOCI into net income on derivatives | (2,011) | (1,746)
Recognized on hedged items | (787) | (655)
Expense recognized on cash flow hedges | (2,811) | (2,408)
Designated as hedge | Fair value hedges: |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |
Recognized on hedged items | 28,988 | 30,454
Premium/discount amortization recognized on hedged items | (854) | (221)
No hedge designation |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |
Gains on financial derivatives | 16,074 | 4,293
Interest Income Investments and Cash Equivalents | Fair value hedges: |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |
Recognized on hedged items | (32,726) |
Gains/(losses) on fair value hedging relationships | 699 |
Interest Income Investments and Cash Equivalents | Cash flow hedges: |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |
Premium/discount amortization recognized on hedged items | 0 |
Interest settlements reclassified from AOCI into net income on derivatives | 0 |
Recognized on hedged items | 0 |
Expense recognized on cash flow hedges | 0 |
Interest Income Investments and Cash Equivalents | Designated as hedge | Fair value hedges: |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |
Recognized on hedged items | 2,597 |
Premium/discount amortization recognized on hedged items | 414 |
Interest Income Investments and Cash Equivalents | No hedge designation |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |
Gains on financial derivatives | 0 |
Interest Income Farmer Mac Guaranteed Securities and USDA Securities | Fair value hedges: |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |
Recognized on hedged items | (210,648) | (168,801)
Gains/(losses) on fair value hedging relationships | (460) | (723)
Interest Income Farmer Mac Guaranteed Securities and USDA Securities | Cash flow hedges: |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |
Premium/discount amortization recognized on hedged items | 0 | 0
Interest settlements reclassified from AOCI into net income on derivatives | 0 | 0
Recognized on hedged items | 0 | 0
Expense recognized on cash flow hedges | 0 | 0
Interest Income Farmer Mac Guaranteed Securities and USDA Securities | Designated as hedge | Fair value hedges: |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |
Recognized on hedged items | 31,929 | 30,775
Premium/discount amortization recognized on hedged items | 0 | 0
Interest Income Farmer Mac Guaranteed Securities and USDA Securities | No hedge designation |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |
Gains on financial derivatives | 0 | 0
Interest Income Loans | Fair value hedges: |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |
Recognized on hedged items | (129,607) | (144,749)
Gains/(losses) on fair value hedging relationships | 2,325 | 1,022
Interest Income Loans | Cash flow hedges: |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |
Premium/discount amortization recognized on hedged items | 0 | 0
Interest settlements reclassified from AOCI into net income on derivatives | 0 | 0
Recognized on hedged items | 0 | 0
Expense recognized on cash flow hedges | 0 | 0
Interest Income Loans | Designated as hedge | Fair value hedges: |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |
Recognized on hedged items | 12,619 | 11,487
Premium/discount amortization recognized on hedged items | 0 | 0
Interest Income Loans | No hedge designation |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |
Gains on financial derivatives | 0 | 0
Total Interest Expense | Fair value hedges: |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |
Recognized on hedged items | 236,814 | 29,501
Gains/(losses) on fair value hedging relationships | (200) | 46
Total Interest Expense | Cash flow hedges: |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |
Premium/discount amortization recognized on hedged items | (13) | (7)
Interest settlements reclassified from AOCI into net income on derivatives | (2,011) | (1,746)
Recognized on hedged items | (787) | (655)
Expense recognized on cash flow hedges | (2,811) | (2,408)
Total Interest Expense | Designated as hedge | Fair value hedges: |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |
Recognized on hedged items | (18,157) | (11,808)
Premium/discount amortization recognized on hedged items | (440) | (221)
Total Interest Expense | No hedge designation |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |
Gains on financial derivatives | 0 | 0
Gains on financial derivatives | Fair value hedges: |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |
Recognized on hedged items | 0 | 0
Gains/(losses) on fair value hedging relationships | 0 | 0
Gains on financial derivatives | Cash flow hedges: |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |
Premium/discount amortization recognized on hedged items | 0 | 0
Interest settlements reclassified from AOCI into net income on derivatives | 0 | 0
Recognized on hedged items | 0 | 0
Expense recognized on cash flow hedges | 0 | 0
Gains on financial derivatives | Designated as hedge | Fair value hedges: |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |
Recognized on hedged items | 0 | 0
Premium/discount amortization recognized on hedged items | 0 | 0
Gains on financial derivatives | No hedge designation |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |
Gains on financial derivatives | 16,074 | 4,293
Interest Rate Swap | Fair value hedges: |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |
Recognized on derivatives | (15,874) | (18,528)
Income/(expense) related to interest settlements on fair value hedging relationships | 12,260 | 11,705
Recognized on derivatives | 138,531 | 284,394
Interest Rate Swap | No hedge designation |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |
Gains on financial derivatives | 703 | 1,470
Expense recognized on cash flow hedges | (927) | 2,223
Interest Rate Swap | Interest Income Investments and Cash Equivalents | Fair value hedges: |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |
Recognized on derivatives | (1,484) |
Income/(expense) related to interest settlements on fair value hedging relationships | 699 |
Recognized on derivatives | 33,425 |
Interest Rate Swap | Interest Income Investments and Cash Equivalents | No hedge designation |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |
Gains on financial derivatives | 0 |
Expense recognized on cash flow hedges | 0 |
Interest Rate Swap | Interest Income Farmer Mac Guaranteed Securities and USDA Securities | Fair value hedges: |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |
Recognized on derivatives | (21,644) | (21,437)
Income/(expense) related to interest settlements on fair value hedging relationships | 10,285 | 9,338
Recognized on derivatives | 210,188 | 168,078
Interest Rate Swap | Interest Income Farmer Mac Guaranteed Securities and USDA Securities | No hedge designation |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |
Gains on financial derivatives | 0 | 0
Expense recognized on cash flow hedges | 0 | 0
Interest Rate Swap | Interest Income Loans | Fair value hedges: |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |
Recognized on derivatives | (6,946) | (6,572)
Income/(expense) related to interest settlements on fair value hedging relationships | 5,673 | 4,915
Recognized on derivatives | 131,932 | 145,771
Interest Rate Swap | Interest Income Loans | No hedge designation |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |
Gains on financial derivatives | 0 | 0
Expense recognized on cash flow hedges | 0 | 0
Interest Rate Swap | Total Interest Expense | Fair value hedges: |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |
Recognized on derivatives | 14,200 | 9,481
Income/(expense) related to interest settlements on fair value hedging relationships | (4,397) | (2,548)
Recognized on derivatives | (237,014) | (29,455)
Interest Rate Swap | Total Interest Expense | No hedge designation |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |
Gains on financial derivatives | 0 | 0
Expense recognized on cash flow hedges | 0 | 0
Interest Rate Swap | Gains on financial derivatives | Fair value hedges: |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |
Recognized on derivatives | 0 | 0
Income/(expense) related to interest settlements on fair value hedging relationships | 0 | 0
Recognized on derivatives | 0 | 0
Interest Rate Swap | Gains on financial derivatives | No hedge designation |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |
Gains on financial derivatives | 703 | 1,470
Expense recognized on cash flow hedges | (927) | 2,223
Treasury futures | No hedge designation |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |
Gains on financial derivatives | 16,298 | 600
Treasury futures | Interest Income Investments and Cash Equivalents | No hedge designation |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |
Gains on financial derivatives | 0 |
Treasury futures | Interest Income Farmer Mac Guaranteed Securities and USDA Securities | No hedge designation |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |
Gains on financial derivatives | 0 | 0
Treasury futures | Interest Income Loans | No hedge designation |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |
Gains on financial derivatives | 0 | 0
Treasury futures | Total Interest Expense | No hedge designation |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |
Gains on financial derivatives | 0 | 0
Treasury futures | Gains on financial derivatives | No hedge designation |  |
Derivative Instruments, Gain (Loss) [Line Items] |  |
Gains on financial derivatives | $ 16,298 | $ 600

X
- Definition Derivative Net Hedge Ineffectiveness Gain Loss Component Recognized On Hedged Item + References No definition available. + Details
Name: | agm_DerivativeNetHedgeIneffectivenessGainLossComponentRecognizedOnHedgedItem
Namespace Prefix: | agm_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Derivative Net Interest Settlements (Interest Accruals) + References No definition available. + Details
Name: | agm_DerivativeNetInterestSettlements
Namespace Prefix: | agm_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Hedged Item Net Interest Settlements (Interest Accruals) + References No definition available. + Details
Name: | agm_HedgedItemNetInterestSettlements
Namespace Prefix: | agm_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Income_Expense related to interest settlements on fair value hedges + References No definition available. + Details
Name: | agm_Income_Expenserelatedtointerestsettlementsonfairvaluehedges
Namespace Prefix: | agm_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Premium (Discount), Recognized on Hedged Instrument + References No definition available. + Details
Name: | agm_PremiumDiscountRecognizedOnHedgedInstrument
Namespace Prefix: | agm_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Total Amounts of Line Items Presented in the Consolidated Statement of Income + References No definition available. + Details
Name: | agm_TotalAmountsOfLineItemsPresentedInTheConsolidatedStatementOfIncome
Namespace Prefix: | agm_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of gain (loss) from the increase (decrease) in fair value of derivative and nonderivative instruments designated as fair value hedging instruments recognized in the income statement. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 25 -Section 50 -Paragraph 1 -Subparagraph (a)(1) -URI http://asc.fasb.org/extlink&oid=121577467&loc=d3e76258-113986 + Details
Name: | us-gaap_ChangeInUnrealizedGainLossOnFairValueHedgingInstruments1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of the increase (decrease) in fair value of the hedged item in a fair value hedge recognized in the income statement. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 25 -Section 50 -Paragraph 1 -Subparagraph (a)(1) -URI http://asc.fasb.org/extlink&oid=121577467&loc=d3e76258-113986 + Details
Name: | us-gaap_ChangeInUnrealizedGainLossOnHedgedItemInFairValueHedge1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
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_DerivativeInstrumentsGainLossLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Aggregate net gain (loss) on all derivative instruments recognized in earnings during the period, before tax effects. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4A -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=125515794&loc=SL5618551-113959 + Details
Name: | us-gaap_GainLossOnDerivativeInstrumentsNetPretax
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Total amount of gain (loss) derived from fair value hedges recognized in earnings in the period. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4C -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=125515794&loc=SL5624171-113959 + Details
Name: | us-gaap_GainLossOnFairValueHedgesRecognizedInEarnings
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of operating dividend and interest income, including amortization and accretion of premiums and discounts, on securities. + References No definition available. + Details
Name: | us-gaap_InterestAndDividendIncomeSecurities
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The aggregate interest and fee income generated by: (1) loans the Entity has positive intent and ability to hold for the foreseeable future, or until maturity or payoff, including commercial and consumer loans, whether domestic or foreign, which may consist of: (a) industrial and agricultural; (b) real estate; and (c) real estate construction loans; (d) trade financing; (e) lease financing; (f) home equity lines-of-credit; (g) automobile and other vehicle loans; and (h) credit card and other revolving-type loans and (2) loans and leases held-for-sale which may include mortgage loans, direct financing, and sales-type leases. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 220 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-04.1) -URI http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260 + Details
Name: | us-gaap_InterestAndFeeIncomeLoansAndLeases
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of the cost of borrowed funds accounted for as interest expense. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 20 -Section 50 -Paragraph 1 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=6450988&loc=d3e26243-108391 Reference 2: 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=124435984&loc=d3e28555-108399 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 22 -Subparagraph (d) -URI http://asc.fasb.org/extlink&oid=123359005&loc=d3e8736-108599 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section S99 -Paragraph 2 -Subparagraph (210.5-03(11)) -URI http://asc.fasb.org/extlink&oid=123367319&loc=SL114868664-224227 Reference 5: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 220 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-04.9) -URI http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260 + Details
Name: | us-gaap_InterestExpense
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of operating interest income, including, but not limited to, amortization and accretion of premiums and discounts on securities. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03.1(e)) -URI http://asc.fasb.org/extlink&oid=123367319&loc=SL114868664-224227 + Details
Name: | us-gaap_InterestIncomeOperating
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The total amount of noninterest income which may be derived from: (1) fees and commissions; (2) premiums earned; (3) insurance policy charges; (4) the sale or disposal of assets; and (5) other sources not otherwise specified. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 220 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-04.13) -URI http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260 + Details
Name: | us-gaap_NoninterestIncome
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount, after tax, of reclassification of gain (loss) from accumulated other comprehensive income (AOCI) for derivative instrument designated and qualifying as cash flow hedge included in assessment of hedge effectiveness. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section 45 -Paragraph 15 -URI http://asc.fasb.org/extlink&oid=124509347&loc=d3e689-108580 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section 45 -Paragraph 11 -URI http://asc.fasb.org/extlink&oid=124509347&loc=d3e637-108580 + Details
Name: | us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount before tax of reclassification adjustments of other comprehensive income (loss). + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section 50 -Paragraph 5 -URI http://asc.fasb.org/extlink&oid=124431353&loc=SL124442411-227067 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 830 -SubTopic 30 -Section 45 -Paragraph 17 -URI http://asc.fasb.org/extlink&oid=118261656&loc=d3e32136-110900 Reference 3: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section 50 -Paragraph 4 -URI http://asc.fasb.org/extlink&oid=124431353&loc=SL124442407-227067 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section 45 -Paragraph 14A -URI http://asc.fasb.org/extlink&oid=124509347&loc=SL7669686-108580 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 830 -SubTopic 30 -Section 50 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=6450520&loc=d3e32583-110901 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 830 -SubTopic 30 -Section 45 -Paragraph 20 -Subparagraph (d) -URI http://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900 + Details
Name: | us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis=us-gaap_FairValueHedgingMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis=us-gaap_CashFlowHedgingMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_HedgingDesignationAxis=us-gaap_DesignatedAsHedgingInstrumentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_HedgingDesignationAxis=us-gaap_NondesignatedMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=agm_InterestRevenueExpenseNetMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=us-gaap_InterestIncomeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=us-gaap_LoansAndFinanceReceivablesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=us-gaap_InterestExpenseMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=us-gaap_GainLossOnDerivativeInstrumentsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DerivativeInstrumentRiskAxis=us-gaap_InterestRateSwapMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DerivativeInstrumentRiskAxis=us-gaap_FutureMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |