XML 50 R38.htm IDEA: XBRL DOCUMENT
v3.8.0.1

Farmer Mac Guaranteed Securities and USDA Guaranteed Securities - Farmer Mac Guaranteed Securities and USDA Securities (Details) $ in Thousands | Mar. 31, 2018 USD ($) position | Dec. 31, 2017 USD ($) position
--- | --- | ---
Schedule of Held-to-Maturity, Available-for-sale, and Trading Securities [Line Items] |  |
Available-for-sale, Securities in Unrealized Loss Positions, Qualitative Disclosure, Number of Positions | position | 104 | 91
Available-for-sale Securities, Continuous Unrealized Loss Position, 12 Months or Longer, Accumulated Loss | $ 2,001 | $ 2,106
Farmer Mac Guaranteed Securities and USDA Securities [Member] |  |
Schedule of Held-to-Maturity, Available-for-sale, and Trading Securities [Line Items] |  |
Unamortized Premium/(Discount) | 60,953 |
Held-to-Maturity Securities [Abstract] |  |
Held-to-Maturity Unpaid Principal Balance | 4,248,859 | 4,181,784
Held-to-maturity Securities, Amortized Cost before Other than Temporary Impairment | 4,309,812 | 4,244,124
Held to Maturity; Unrealized Holding Gains | 1,696 | 2,119
Held to Maturity - Unrealized Holding Loss | (68,564) | (66,471)
Held-to-maturity Securities, Fair Value | 4,242,944 | 4,179,772
Available-for-sale Securities [Abstract] |  |
Available-for-sale Securities, Amortized Cost Basis | 5,861,566 |
Available-for-sale, at fair value | 5,839,387 |
Farmer Mac Guaranteed Securities [Member] |  |
Schedule of Held-to-Maturity, Available-for-sale, and Trading Securities [Line Items] |  |
Unamortized Premium/(Discount) | (171) | (460)
Held-to-Maturity Securities [Abstract] |  |
Held-to-Maturity Unpaid Principal Balance | 2,182,214 | 2,126,734
Held-to-maturity Securities, Amortized Cost before Other than Temporary Impairment | 2,182,043 | 2,126,274
Held to Maturity; Unrealized Holding Gains | 956 | 2,119
Held to Maturity - Unrealized Holding Loss | (16,271) | (11,502)
Held-to-maturity Securities, Fair Value | 2,166,728 | 2,116,891
USDA Securities [Member] |  |
Trading Securities [Abstract] |  |
Trading, at fair value | $ 11,558 | 13,515
Institutional Credit [Member] | Farmer Mac Guaranteed Securities and USDA Securities [Member] |  |
Schedule of Held-to-Maturity, Available-for-sale, and Trading Securities [Line Items] |  |
Unamortized Premium/(Discount) |  | $ 62,340
Institutional Credit [Member] | Farmer Mac Guaranteed Securities [Member] |  |
Schedule of Held-to-Maturity, Available-for-sale, and Trading Securities [Line Items] |  |
Available-for-sale, Securities in Unrealized Loss Positions, Qualitative Disclosure, Number of Positions | position | 43 | 36
Held-to-maturity, Securities in Unrealized Loss Positions, Qualitative Disclosure, Number of Positions | position | 43 | 23
Available-for-sale, Securities in Unrealized Loss Positions, Qualitative Disclosure, Number of Positions, Greater than or Equal to One Year | position | 14 | 16
Available-for-sale Securities, Continuous Unrealized Loss Position, 12 Months or Longer, Accumulated Loss | $ 32,539 | $ 37,492
Held-to-Maturity Securities [Abstract] |  |
Held-to-Maturity Unpaid Principal Balance | 2,152,618 | 2,096,754
Held-to-maturity Securities, Amortized Cost before Other than Temporary Impairment | 2,152,143 | 2,095,975
Held to Maturity; Unrealized Holding Gains | 534 | 2,011
Held to Maturity - Unrealized Holding Loss | (16,265) | (11,429)
Held-to-maturity Securities, Fair Value | 2,136,412 | 2,086,557
Available-for-sale Securities [Abstract] |  |
Available-for-Sale Securities Unpaid Principal Balance | 5,861,731 | 5,496,569
Available-for-sale Securities, Amortized Cost Basis | 5,861,566 | 5,496,387
Available-for-sale Debt Securities, Accumulated Gross Unrealized Gain, before Tax | 22,731 | 21,838
Available-for-sale Securities, Unrealized Losses | (44,910) | (46,311)
Available-for-sale, at fair value | 5,839,387 | 5,471,914
Institutional Credit [Member] | Held-to-maturity Securities [Member] | Farmer Mac Guaranteed Securities [Member] |  |
Schedule of Held-to-Maturity, Available-for-sale, and Trading Securities [Line Items] |  |
Unamortized Premium/(Discount) | (475) | (779)
Institutional Credit [Member] | Available-for-sale Securities [Member] | Farmer Mac Guaranteed Securities [Member] |  |
Schedule of Held-to-Maturity, Available-for-sale, and Trading Securities [Line Items] |  |
Unamortized Premium/(Discount) | (165) | (182)
USDA Guarantees [Member] |  |
Schedule of Held-to-Maturity, Available-for-sale, and Trading Securities [Line Items] |  |
Unamortized Premium/(Discount) |  | 300
USDA Guarantees [Member] | Farmer Mac Guaranteed Securities [Member] |  |
Held-to-Maturity Securities [Abstract] |  |
Held-to-Maturity Unpaid Principal Balance | 29,596 | 29,980
Held-to-maturity Securities, Amortized Cost before Other than Temporary Impairment | 29,900 | 30,299
Held to Maturity; Unrealized Holding Gains | 422 | 108
Held to Maturity - Unrealized Holding Loss | (6) | (73)
Held-to-maturity Securities, Fair Value | 30,316 | 30,334
USDA Guarantees [Member] | USDA Securities [Member] |  |
Schedule of Held-to-Maturity, Available-for-sale, and Trading Securities [Line Items] |  |
Unamortized Premium/(Discount) | 61,124 | 62,800
Held-to-Maturity Securities [Abstract] |  |
Held-to-Maturity Unpaid Principal Balance | 2,066,645 | 2,055,050
Held-to-maturity Securities, Amortized Cost before Other than Temporary Impairment | 2,127,769 | 2,117,850
Held to Maturity; Unrealized Holding Gains | 740 | 0
Held to Maturity - Unrealized Holding Loss | (52,293) | (54,969)
Held-to-maturity Securities, Fair Value | 2,076,216 | 2,062,881
Trading Securities [Abstract] |  |
Trading Securities Unpaid Principal Balance | 11,063 | 12,966
Trading Securities, Debt, Amortized Cost | 11,915 | 13,888
Trading Securities, Unrealized Gains | 38 | 28
Trading Securities, Unrealized Holding Loss | (395) | (401)
Trading, at fair value | $ 11,558 | $ 13,515
Trading Securities, Weighted-Average Yield | 5.31% | 5.33%
USDA Guarantees [Member] | Available-for-sale Securities [Member] | Farmer Mac Guaranteed Securities [Member] |  |
Schedule of Held-to-Maturity, Available-for-sale, and Trading Securities [Line Items] |  |
Unamortized Premium/(Discount) | $ 304 | $ 319
USDA Guarantees [Member] | Trading Securities [Member] | USDA Securities [Member] |  |
Schedule of Held-to-Maturity, Available-for-sale, and Trading Securities [Line Items] |  |
Unamortized Premium/(Discount) | $ 852 | $ 922

X
- Definition Available-for-Sale Securities Unpaid Principal Balance + References No definition available. + Details
Name: | agm_AvailableforSaleSecuritiesUnpaidPrincipalBalance
Namespace Prefix: | agm_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
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 [Line Items] for Schedule of held to maturity, available for sale, and trading securities which includes, but is not limited to changes in the cost basis and fair value, fair value and gross unrealized gain (loss), fair values by type of security, contractual maturity and classification, amortized cost basis and other related disclosures + References No definition available. + Details
Name: | agm_ScheduleofHeldtoMaturityAvailableforsaleandTradingSecuritiesLineItems
Namespace Prefix: | agm_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

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: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Amount before tax of unrealized gain in accumulated other comprehensive income (AOCI) on investments in debt securities classified as available-for-sale. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=82897076&loc=d3e27161-111563 + 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 investments in debt securities classified as available-for-sale. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=82897076&loc=d3e27161-111563 + Details
Name: | us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of investment in debt and equity securities categorized neither as held-to-maturity nor trading. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 25 -Paragraph 1 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=75030427&loc=d3e22054-111558 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 5 -Subparagraph (aa) -URI http://asc.fasb.org/extlink&oid=82897076&loc=d3e27232-111563 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 45 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=82896770&loc=d3e26610-111562 + Details
Name: | us-gaap_AvailableForSaleSecurities
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 This item represents the cost of debt and equity securities, which are categorized neither as held-to-maturity nor trading, net of adjustments including accretion, amortization, collection of cash, previous other-than-temporary impairments recognized in earnings (less any cumulative-effect adjustments recognized, as defined), and fair value hedge accounting adjustments, if any. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.2) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_AvailableForSaleSecuritiesAmortizedCost
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of accumulated unrealized loss on investments in debt and equity securities classified as available-for-sale that have been in a continuous loss position for twelve months or longer. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 6 -Subparagraph (a)(2) -URI http://asc.fasb.org/extlink&oid=82897076&loc=d3e27290-111563 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 7 -URI http://asc.fasb.org/extlink&oid=82897076&loc=d3e27337-111563 + Details
Name: | us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Number of investment positions in available-for-sale investments in a continuous unrealized loss position for which an other-than-temporary impairment (OTTI) has not been recognized in the income statement. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 6 -Subparagraph (b)(3) -URI http://asc.fasb.org/extlink&oid=82897076&loc=d3e27290-111563 + Details
Name: | us-gaap_AvailableforsaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositions1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | instant

X
- Definition Number of investment positions in available-for-sale investments that have been in a continuous unrealized loss position for greater than or equal to a year for which an other-than-temporary impairment (OTTI) has not been recognized in the income statement. + References No definition available. + Details
Name: | us-gaap_AvailableforsaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositionsGreaterThanOrEqualToOneYear
Namespace Prefix: | us-gaap_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | instant

X
- Definition Amount, after accumulated amortization, of debt discount (premium). + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 4 -URI http://asc.fasb.org/extlink&oid=64930785&loc=d3e28567-108399 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 1A -URI http://asc.fasb.org/extlink&oid=64930785&loc=d3e28541-108399 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 55 -Paragraph 8 -URI http://asc.fasb.org/extlink&oid=64930739&loc=d3e28878-108400 Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=64930785&loc=d3e28551-108399 Reference 5: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=64930785&loc=d3e28555-108399 + Details
Name: | us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
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 unrealized gain on investments in debt securities classified as held-to-maturity. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 5 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=82897076&loc=d3e27232-111563 + 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 investments in debt securities classified as held-to-maturity. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 5 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=82897076&loc=d3e27232-111563 + Details
Name: | us-gaap_HeldToMaturitySecuritiesAccumulatedUnrecognizedHoldingLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount before other than temporary impairment (OTTI) accretion, of investments in debt securities classified as held-to-maturity. + References No definition available. + Details
Name: | us-gaap_HeldToMaturitySecuritiesAmortizedCostBeforeOtherThanTemporaryImpairment
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Fair value of investments in debt securities classified as held-to-maturity. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 5 -Subparagraph (aa) -URI http://asc.fasb.org/extlink&oid=82897076&loc=d3e27232-111563 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 5 -Subparagraph (f) -URI http://asc.fasb.org/extlink&oid=82897076&loc=d3e27232-111563 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 5 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=82897076&loc=d3e27232-111563 + Details
Name: | us-gaap_HeldToMaturitySecuritiesFairValue
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Disclosure regarding factors used to determine that the impairment of securities categorized as held-to-maturity where cost exceeds fair value is not an other than temporary impairment (OTTI). This item contains disclosure of the number of investment positions in the held-to-maturity investments determined to be temporarily impaired. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 6 -Subparagraph (b)(3) -URI http://asc.fasb.org/extlink&oid=82897076&loc=d3e27290-111563 + Details
Name: | us-gaap_HeldToMaturitySecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositions
Namespace Prefix: | us-gaap_
Data Type: | xbrli:decimalItemType
Balance Type: | na
Period Type: | instant

X
- Definition Amount of investments in debt and equity securities and other forms of securities that provide ownership interests classified as trading. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 45 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=82896770&loc=d3e26626-111562 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03.4) -URI http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 45 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=82896770&loc=d3e26610-111562 + Details
Name: | us-gaap_TradingSecurities
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- References No definition available. + Details
Name: | us-gaap_TradingSecuritiesAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amortized cost of investments in debt securities classified as trading. + References No definition available. + Details
Name: | us-gaap_TradingSecuritiesDebtAmortizedCost
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of unrealized holding gain before loss recognized in the income statement for investments in trading securities. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 225 -SubTopic 10 -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03.7(c)) -URI http://asc.fasb.org/extlink&oid=63488584&loc=d3e20235-122688 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 35 -Paragraph 1 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=82895926&loc=d3e24584-111560 Reference 3: http://www.xbrl.org/2003/role/presentationRef -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_TradingSecuritiesUnrealizedHoldingGain
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of unrealized holding loss before gain recognized in the income statement for investments in trading securities. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 35 -Paragraph 1 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=82895926&loc=d3e24584-111560 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 225 -SubTopic 10 -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03.7(c)) -URI http://asc.fasb.org/extlink&oid=63488584&loc=d3e20235-122688 Reference 3: http://www.xbrl.org/2003/role/presentationRef -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_TradingSecuritiesUnrealizedHoldingLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis=us-gaap_USTreasuryAndGovernmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis=us-gaap_USGovernmentSponsoredEnterprisesDebtSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis=us-gaap_USGovernmentAgenciesDebtSecuritiesMember
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_GainLossOnInvestmentsByCategoryAxis=us-gaap_HeldtomaturitySecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_GainLossOnInvestmentsByCategoryAxis=us-gaap_AvailableforsaleSecuritiesMember
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_GainLossOnInvestmentsByCategoryAxis=us-gaap_TradingAccountAssetsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |