XML 51 R40.htm IDEA: XBRL DOCUMENT
v3.24.2.u1

FARMER MAC GUARANTEED SECURITIES AND USDA SECURITIES - Schedule of On-Balance Sheet Securities (Details) - USD ($) | 6 Months Ended | 12 Months Ended
--- | --- | ---
Jun. 30, 2024 | Dec. 31, 2023
Trading: |  |
Debt Securities, Available-for-Sale, Accrued Interest, after Allowance for Credit Loss, Statement of Financial Position [Extensible Enumeration] | Accrued interest receivable (includes $21,711 and $16,764, respectively, related to consolidated trusts) | Accrued interest receivable (includes $21,711 and $16,764, respectively, related to consolidated trusts)
Farmer Mac Guaranteed Securities |  |
Held-to-maturity: |  |
Unpaid Principal Balance | $ 3,957,358,000 | $ 4,242,867,000
Amortized cost | 3,929,201,000 | 4,213,278,000
Allowance for losses | (133,000) | (209,000)
Unrealized Gains | 8,961,000 | 4,783,000
Unrealized Losses | (32,240,000) | (40,257,000)
Fair Value | 3,905,789,000 | 4,177,595,000
Available-for-sale: |  |
Amortized cost | 5,755,298,000 |
Fair Value | 5,399,151,000 |
USDA Securities |  |
Held-to-maturity: |  |
Unpaid Principal Balance | 2,309,465,000 | 2,331,093,000
Amortized cost | 2,330,535,000 | 2,354,171,000
Allowance for losses | 0 | 0
Unrealized Gains | 255,000 | 417,000
Unrealized Losses | (335,230,000) | (319,783,000)
Fair Value | 1,995,560,000 | 2,034,805,000
Trading: |  |
Unpaid Principal Balance | 1,032,000 | 1,236,000
Amortized Cost | 1,084,000 | 1,300,000
Allowance for losses | 0 | 0
Unrealized Gains | 0 | 0
Unrealized Losses | (58,000) | (59,000)
Fair Value | 1,026,000 | $ 1,241,000
Trading securities, weighted-average yield |  | 5.46%
Farmer Mac Guaranteed Securities and USDA Securities |  |
Held-to-maturity: |  |
Unpaid Principal Balance | 6,266,823,000 | $ 6,573,960,000
Amortized cost | 6,259,736,000 | 6,567,449,000
Allowance for losses | (133,000) | (209,000)
Unrealized Gains | 9,216,000 | 5,200,000
Unrealized Losses | (367,470,000) | (360,040,000)
Fair Value | 5,901,349,000 | 6,212,400,000
Farmer Mac Guaranteed Securities |  |
Held-to-maturity: |  |
Amortized cost | 3,929,068,000 | 4,213,069,000
Available-for-sale: |  |
Unpaid Principal Balance | 5,746,236,000 | 5,816,024,000
Amortized cost | 5,755,298,000 | 5,825,433,000
Allowance for losses | (261,000) | (317,000)
Unrealized Gains | 5,689,000 | 16,774,000
Unrealized Losses | (361,575,000) | (309,411,000)
Fair Value | 5,399,151,000 | 5,532,479,000
Held-to-Maturity Securities | Farmer Mac Guaranteed Securities |  |
Held-to-maturity: |  |
Unamortized Premium/(Discount) | (28,157,000) | (29,589,000)
Available-for-sale: |  |
Unamortized Premium/(Discount) | (28,157,000) | (29,589,000)
Trading: |  |
Unamortized Premium/(Discount) | (28,157,000) | (29,589,000)
Held-to-Maturity Securities | USDA Securities |  |
Held-to-maturity: |  |
Unamortized Premium/(Discount) | 21,070,000 | 23,078,000
Available-for-sale: |  |
Unamortized Premium/(Discount) | 21,070,000 | 23,078,000
Trading: |  |
Unamortized Premium/(Discount) | 21,070,000 | 23,078,000
Held-to-Maturity Securities | Farmer Mac Guaranteed Securities and USDA Securities |  |
Held-to-maturity: |  |
Unamortized Premium/(Discount) | (7,087,000) | (6,511,000)
Available-for-sale: |  |
Unamortized Premium/(Discount) | (7,087,000) | (6,511,000)
Trading: |  |
Unamortized Premium/(Discount) | (7,087,000) | (6,511,000)
Available-for-Sale Securities | Farmer Mac Guaranteed Securities |  |
Held-to-maturity: |  |
Unamortized Premium/(Discount) | 9,062,000 | 9,409,000
Available-for-sale: |  |
Unamortized Premium/(Discount) | 9,062,000 | 9,409,000
Trading: |  |
Unamortized Premium/(Discount) | 9,062,000 | 9,409,000
Trading Securities | USDA Securities |  |
Held-to-maturity: |  |
Unamortized Premium/(Discount) | 52,000 | 64,000
Available-for-sale: |  |
Unamortized Premium/(Discount) | 52,000 | 64,000
Trading: |  |
Unamortized Premium/(Discount) | 52,000 | 64,000
Farmer Mac Guaranteed Securities | Farmer Mac Guaranteed Securities |  |
Available-for-sale: |  |
Fair Value | 9,300,000 | 9,800,000
Trading: |  |
Derivative, notional amount | 232,400,000 | 238,400,000
Farmer Mac Guaranteed Securities | Farmer Mac Guaranteed Securities |  |
Available-for-sale: |  |
Unpaid Principal Balance | 0 | 0
Amortized cost | 9,062,000 | 9,409,000
Allowance for losses | 0 | 0
Unrealized Gains | 248,000 | 358,000
Unrealized Losses | 0 | 0
Fair Value | 9,310,000 | 9,767,000
Farmer Mac Guaranteed Securities | Available-for-Sale Securities | Farmer Mac Guaranteed Securities |  |
Held-to-maturity: |  |
Unamortized Premium/(Discount) | 9,062,000 | 9,409,000
Available-for-sale: |  |
Unamortized Premium/(Discount) | 9,062,000 | 9,409,000
Trading: |  |
Unamortized Premium/(Discount) | 9,062,000 | 9,409,000
AgVantage |  |
Trading: |  |
Available-for-sale, accrued interest excluded | 53,600,000 | 47,200,000
Held-to-maturity, accrued interest excluded | 55,000,000 | 67,400,000
Trading securities, accrued interest excluded | 28,690 | 42,000
AgVantage | Farmer Mac Guaranteed Securities |  |
Held-to-maturity: |  |
Unpaid Principal Balance | 3,908,405,000 | 4,206,324,000
Amortized cost | 3,880,218,000 | 4,176,702,000
Allowance for losses | (133,000) | (209,000)
Unrealized Gains | 8,851,000 | 4,676,000
Unrealized Losses | (31,300,000) | (39,451,000)
Fair Value | 3,857,636,000 | 4,141,718,000
AgVantage | Farmer Mac Guaranteed Securities |  |
Available-for-sale: |  |
Unpaid Principal Balance | 5,746,236,000 | 5,816,024,000
Amortized cost | 5,746,236,000 | 5,816,024,000
Allowance for losses | (261,000) | (317,000)
Unrealized Gains | 5,441,000 | 16,416,000
Unrealized Losses | (361,575,000) | (309,411,000)
Fair Value | 5,389,841,000 | 5,522,712,000
AgVantage | Held-to-Maturity Securities | Farmer Mac Guaranteed Securities |  |
Held-to-maturity: |  |
Unamortized Premium/(Discount) | (28,187,000) | (29,622,000)
Available-for-sale: |  |
Unamortized Premium/(Discount) | (28,187,000) | (29,622,000)
Trading: |  |
Unamortized Premium/(Discount) | (28,187,000) | (29,622,000)
AgVantage | Available-for-Sale Securities | Farmer Mac Guaranteed Securities |  |
Held-to-maturity: |  |
Unamortized Premium/(Discount) | 0 | 0
Available-for-sale: |  |
Unamortized Premium/(Discount) | 0 | 0
Trading: |  |
Unamortized Premium/(Discount) | 0 | 0
Farmer Mac Guaranteed USDA Securities | Farmer Mac Guaranteed Securities |  |
Held-to-maturity: |  |
Unpaid Principal Balance | 48,953,000 | 36,543,000
Amortized cost | 48,983,000 | 36,576,000
Allowance for losses | 0 | 0
Unrealized Gains | 110,000 | 107,000
Unrealized Losses | (940,000) | (806,000)
Fair Value | $ 48,153,000 | 35,877,000
Farmer Mac Guaranteed USDA Securities | USDA Securities |  |
Trading: |  |
Trading securities, weighted-average yield | 5.57% |
Farmer Mac Guaranteed USDA Securities | Held-to-Maturity Securities | Farmer Mac Guaranteed Securities |  |
Held-to-maturity: |  |
Unamortized Premium/(Discount) | $ 30,000 | 33,000
Available-for-sale: |  |
Unamortized Premium/(Discount) | 30,000 | 33,000
Trading: |  |
Unamortized Premium/(Discount) | $ 30,000 | $ 33,000

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, Amortized Cost, Excluding Accrued Interest, before Allowance for Credit Loss + References No definition available. + Details
Name: | agm_DebtSecuritiesHeldToMaturityAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss
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: | dtr-types1: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://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481800/320-10-50-2 + 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://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481800/320-10-50-2 + Details
Name: | us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax
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, after accumulated amortization, of debt discount (premium). + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 835 -SubTopic 30 -Name Accounting Standards Codification -Section 45 -Paragraph 1A -Publisher FASB -URI https://asc.fasb.org/1943274/2147482925/835-30-45-1A Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 835 -SubTopic 30 -Name Accounting Standards Codification -Section 45 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482925/835-30-45-2 Reference 3: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 835 -SubTopic 30 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482900/835-30-50-1 Reference 4: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1D -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481139/470-20-50-1D + Details
Name: | us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount, after allowance for credit loss, of accrued interest 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 -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2A -Publisher FASB -URI https://asc.fasb.org/1943274/2147481800/320-10-50-2A Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 30 -Name Accounting Standards Codification -Section 45 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479130/326-30-45-1 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 30 -Name Accounting Standards Codification -Section 50 -Paragraph 3A -Publisher FASB -URI https://asc.fasb.org/1943274/2147479106/326-30-50-3A Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 30 -Name Accounting Standards Codification -Section 50 -Paragraph 3B -Publisher FASB -URI https://asc.fasb.org/1943274/2147479106/326-30-50-3B + Details
Name: | us-gaap_DebtSecuritiesAvailableForSaleAccruedInterestAfterAllowanceForCreditLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Indicates line item in statement of financial position that includes accrued interest, after 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 -Topic 326 -SubTopic 30 -Name Accounting Standards Codification -Section 50 -Paragraph 3A -Publisher FASB -URI https://asc.fasb.org/1943274/2147479106/326-30-50-3A + Details
Name: | us-gaap_DebtSecuritiesAvailableForSaleAccruedInterestAfterAllowanceForCreditLossStatementOfFinancialPositionExtensibleList
Namespace Prefix: | us-gaap_
Data Type: | enum2:enumerationSetItemType
Balance Type: | na
Period Type: | instant

X
- Definition Amount excluding accrued interest, 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 -Topic 326 -SubTopic 30 -Name Accounting Standards Codification -Section 45 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479130/326-30-45-1 + Details
Name: | us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostAllowanceForCreditLossExcludingAccruedInterest
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amortized cost excluding accrued interest, before allowance for credit loss, 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 -Topic 326 -SubTopic 30 -Name Accounting Standards Codification -Section 45 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479130/326-30-45-1 + Details
Name: | us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

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

X
- Definition Amount, before allowance for credit loss, of accrued interest on investment in debt security measured at amortized cost (held-to-maturity). + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 3B -Publisher FASB -URI https://asc.fasb.org/1943274/2147479319/326-20-50-3B + Details
Name: | us-gaap_DebtSecuritiesHeldToMaturityAccruedInterestBeforeAllowanceForCreditLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount, excluding accrued interest, of allowance for credit loss on investment in debt security measured at amortized cost (held-to-maturity). + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 45 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479344/326-20-45-1 + Details
Name: | us-gaap_DebtSecuritiesHeldToMaturityAllowanceForCreditLossExcludingAccruedInterest
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 -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 9 -Subparagraph (e) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481800/320-10-50-9 + 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 -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 9 -Subparagraph (e) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481800/320-10-50-9 + Details
Name: | us-gaap_DebtSecuritiesTradingUnrealizedLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Nominal or face amount used to calculate payment on derivative. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 1B -Publisher FASB -URI https://asc.fasb.org/1943274/2147480434/815-10-50-1B Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 1A -Subparagraph (d) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480434/815-10-50-1A + Details
Name: | us-gaap_DerivativeNotionalAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | na
Period Type: | instant

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/otherTransitionRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 5 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481800/320-10-50-5 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 5A -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481800/320-10-50-5A + 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/otherTransitionRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 5 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481800/320-10-50-5 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 5A -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481800/320-10-50-5A + Details
Name: | us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss
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 -Topic 942 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(4)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147478546/942-210-S99-1 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(2)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 Reference 3: http://www.xbrl.org/2003/role/exampleRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section 45 -Paragraph 1 -Subparagraph (f) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483467/210-10-45-1 + 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 Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 944 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03(a)(1)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147478777/944-210-S99-1 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(2)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 + 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_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_FinancialInstrumentAxis=us-gaap_USTreasuryAndGovernmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

X
- Details
Name: | agm_DebtSecurityInvestmentCategoryAxis=agm_DebtSecuritiesHeldToMaturityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | agm_DebtSecurityInvestmentCategoryAxis=agm_DebtSecuritiesAvailableForSaleMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | agm_DebtSecurityInvestmentCategoryAxis=agm_DebtSecuritiesTradingMember
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_AgVantageMember
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: |