XML 74 R63.htm IDEA: XBRL DOCUMENT
v3.25.1

GUARANTEES AND COMMITMENTS - Credit Quality Indicators (Details) - USD ($) $ in Thousands | 3 Months Ended |
--- | --- | ---
Mar. 31, 2025 | Mar. 31, 2024 | Dec. 31, 2024
Total |  |  |
Total | $ 11,636,815 |  | $ 11,183,408
Infrastructure Finance |  |  |
Year One |  |  |
Total | 295,563 |  | 1,158,427
Current period charge-offs | 0 | $ 0 |
Year Two |  |  |
Total | 1,172,130 |  | 534,499
Current period charge-offs | 0 | 0 |
Year Three |  |  |
Total | 533,148 |  | 642,402
Current period charge-offs | 0 | 0 |
Year Four |  |  |
Total | 640,751 |  | 174,232
Current period charge-offs | 0 | 0 |
Year Five |  |  |
Total | 175,924 |  | 574,135
Current period charge-offs | 0 | 0 |
Prior |  |  |
Total | 1,761,509 |  | 1,229,626
Current period charge-offs | 0 | 0 |
Revolving Loans - Amortized Cost Basis |  |  |
Total | 529,965 |  | 461,162
Current period charge-offs | 0 | 0 |
Total |  |  |
Total | 5,108,990 |  | 4,774,483
Current period charge-offs | 0 | 0 |
Acceptable | Infrastructure Finance |  |  |
Year One |  |  |
Total | 295,563 |  | 1,158,427
Year Two |  |  |
Total | 1,172,130 |  | 521,143
Year Three |  |  |
Total | 520,026 |  | 578,882
Year Four |  |  |
Total | 601,968 |  | 174,232
Year Five |  |  |
Total | 175,924 |  | 574,135
Prior |  |  |
Total | 1,761,509 |  | 1,229,626
Revolving Loans - Amortized Cost Basis |  |  |
Total | 529,965 |  | 461,162
Total |  |  |
Total | 5,057,085 |  | 4,697,607
Special mention | Infrastructure Finance |  |  |
Year One |  |  |
Total | 0 |  | 0
Year Two |  |  |
Total | 0 |  | 0
Year Three |  |  |
Total | 0 |  | 34,388
Year Four |  |  |
Total | 9,724 |  | 0
Year Five |  |  |
Total | 0 |  | 0
Prior |  |  |
Total | 0 |  | 0
Revolving Loans - Amortized Cost Basis |  |  |
Total | 0 |  | 0
Total |  |  |
Total | 9,724 |  | 34,388
Substandard | Infrastructure Finance |  |  |
Year One |  |  |
Total | 0 |  | 0
Year Two |  |  |
Total | 0 |  | 13,356
Year Three |  |  |
Total | 13,122 |  | 29,132
Year Four |  |  |
Total | 29,059 |  | 0
Year Five |  |  |
Total | 0 |  | 0
Prior |  |  |
Total | 0 |  | 0
Revolving Loans - Amortized Cost Basis |  |  |
Total | 0 |  | 0
Total |  |  |
Total | 42,181 |  | 42,488
Long-Term Standby Purchase Commitments and Guaranteed Securities |  |  |
Total |  |  |
Total | 4,377,454 |  | 4,267,519
Long-Term Standby Purchase Commitments and Guaranteed Securities | Agricultural Finance |  |  |
Year One |  |  |
Total | 18,183 |  | 70,757
Current period charge-offs | 0 | 0 |
Year Two |  |  |
Total | 86,202 |  | 169,609
Current period charge-offs | 0 | 0 |
Year Three |  |  |
Total | 171,538 |  | 273,717
Current period charge-offs | 0 | 0 |
Year Four |  |  |
Total | 263,317 |  | 580,836
Current period charge-offs | 0 | 0 |
Year Five |  |  |
Total | 573,750 |  | 594,297
Current period charge-offs | 0 | 0 |
Prior |  |  |
Total | 1,912,507 |  | 1,379,249
Current period charge-offs | 0 | 0 |
Revolving Loans - Amortized Cost Basis |  |  |
Total | 486,031 |  | 466,323
Current period charge-offs | 0 | 0 |
Total |  |  |
Total | 3,511,528 |  | 3,534,788
Current period charge-offs | 0 | 0 |
Long-Term Standby Purchase Commitments and Guaranteed Securities | Infrastructure Finance |  |  |
Year One |  |  |
Total | 0 |  | 0
Current period charge-offs | 0 | 0 |
Year Two |  |  |
Total | 0 |  | 0
Current period charge-offs | 0 | 0 |
Year Three |  |  |
Total | 0 |  | 0
Current period charge-offs | 0 | 0 |
Year Four |  |  |
Total | 0 |  | 0
Current period charge-offs | 0 | 0 |
Year Five |  |  |
Total | 0 |  | 0
Current period charge-offs | 0 | 0 |
Prior |  |  |
Total | 347,889 |  | 355,848
Current period charge-offs | 0 | 0 |
Revolving Loans - Amortized Cost Basis |  |  |
Total | 518,037 |  | 376,883
Current period charge-offs | 0 | 0 |
Total |  |  |
Total | 865,926 |  | 732,731
Current period charge-offs | 0 | $ 0 |
Long-Term Standby Purchase Commitments and Guaranteed Securities | Acceptable | Agricultural Finance |  |  |
Year One |  |  |
Total | 18,183 |  | 70,757
Year Two |  |  |
Total | 86,202 |  | 163,646
Year Three |  |  |
Total | 163,699 |  | 267,551
Year Four |  |  |
Total | 249,627 |  | 563,747
Year Five |  |  |
Total | 551,903 |  | 583,598
Prior |  |  |
Total | 1,842,141 |  | 1,312,988
Revolving Loans - Amortized Cost Basis |  |  |
Total | 473,476 |  | 452,909
Total |  |  |
Total | 3,385,231 |  | 3,415,196
Long-Term Standby Purchase Commitments and Guaranteed Securities | Acceptable | Infrastructure Finance |  |  |
Year One |  |  |
Total | 0 |  | 0
Year Two |  |  |
Total | 0 |  | 0
Year Three |  |  |
Total | 0 |  | 0
Year Four |  |  |
Total | 0 |  | 0
Year Five |  |  |
Total | 0 |  | 0
Prior |  |  |
Total | 347,889 |  | 355,848
Revolving Loans - Amortized Cost Basis |  |  |
Total | 518,037 |  | 376,883
Total |  |  |
Total | 865,926 |  | 732,731
Long-Term Standby Purchase Commitments and Guaranteed Securities | Special mention | Agricultural Finance |  |  |
Year One |  |  |
Total | 0 |  | 0
Year Two |  |  |
Total | 0 |  | 5,963
Year Three |  |  |
Total | 7,839 |  | 4,920
Year Four |  |  |
Total | 12,444 |  | 15,954
Year Five |  |  |
Total | 7,717 |  | 4,354
Prior |  |  |
Total | 48,271 |  | 44,964
Revolving Loans - Amortized Cost Basis |  |  |
Total | 12,226 |  | 12,197
Total |  |  |
Total | 88,497 |  | 88,352
Long-Term Standby Purchase Commitments and Guaranteed Securities | Special mention | Infrastructure Finance |  |  |
Year One |  |  |
Total | 0 |  | 0
Year Two |  |  |
Total | 0 |  | 0
Year Three |  |  |
Total | 0 |  | 0
Year Four |  |  |
Total | 0 |  | 0
Year Five |  |  |
Total | 0 |  | 0
Prior |  |  |
Total | 0 |  | 0
Revolving Loans - Amortized Cost Basis |  |  |
Total | 0 |  | 0
Total |  |  |
Total | 0 |  | 0
Long-Term Standby Purchase Commitments and Guaranteed Securities | Substandard | Agricultural Finance |  |  |
Year One |  |  |
Total | 0 |  | 0
Year Two |  |  |
Total | 0 |  | 0
Year Three |  |  |
Total | 0 |  | 1,246
Year Four |  |  |
Total | 1,246 |  | 1,135
Year Five |  |  |
Total | 14,130 |  | 6,345
Prior |  |  |
Total | 22,095 |  | 21,297
Revolving Loans - Amortized Cost Basis |  |  |
Total | 329 |  | 1,217
Total |  |  |
Total | 37,800 |  | 31,240
Long-Term Standby Purchase Commitments and Guaranteed Securities | Substandard | Infrastructure Finance |  |  |
Year One |  |  |
Total | 0 |  | 0
Year Two |  |  |
Total | 0 |  | 0
Year Three |  |  |
Total | 0 |  | 0
Year Four |  |  |
Total | 0 |  | 0
Year Five |  |  |
Total | 0 |  | 0
Prior |  |  |
Total | 0 |  | 0
Revolving Loans - Amortized Cost Basis |  |  |
Total | 0 |  | 0
Total |  |  |
Total | $ 0 |  | $ 0

X
- Definition Financing Receivable, Originated Five or More Years before Latest Fiscal Year + References No definition available. + Details
Name: | agm_FinancingReceivableOriginatedFiveOrMoreYearsBeforeLatestFiscalYearAbstract
Namespace Prefix: | agm_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Financing Receivable, Originated Four Years before Latest Fiscal Year + References No definition available. + Details
Name: | agm_FinancingReceivableOriginatedFourYearsBeforeLatestFiscalYearAbstract
Namespace Prefix: | agm_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Financing Receivable, Originated in Current Fiscal Year + References No definition available. + Details
Name: | agm_FinancingReceivableOriginatedInCurrentFiscalYearAbstract
Namespace Prefix: | agm_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Financing Receivable, Originated in Fiscal Year before Latest Fiscal Year + References No definition available. + Details
Name: | agm_FinancingReceivableOriginatedInFiscalYearBeforeLatestFiscalYearAbstract
Namespace Prefix: | agm_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Financing Receivable, Originated Three Years before Latest Fiscal Year + References No definition available. + Details
Name: | agm_FinancingReceivableOriginatedThreeYearsBeforeLatestFiscalYearAbstract
Namespace Prefix: | agm_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Financing Receivable, Originated Two Years before Latest Fiscal Year + References No definition available. + Details
Name: | agm_FinancingReceivableOriginatedTwoYearsBeforeLatestFiscalYearAbstract
Namespace Prefix: | agm_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Financing Receivable, Revolving + References No definition available. + Details
Name: | agm_FinancingReceivableRevolvingAbstract
Namespace Prefix: | agm_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

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

X
- Definition Amount, excluding accrued interest, of decrease in allowance for credit loss on financing receivable from writeoff. Excludes net investment in lease. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479319/326-20-50-6 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 13 -Subparagraph (d) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479319/326-20-50-13 + Details
Name: | us-gaap_FinancingReceivableExcludingAccruedInterestAllowanceForCreditLossWriteoff
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

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/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 Reference 2: 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 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 5 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479319/326-20-50-5 + Details
Name: | us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amortized cost excluding accrued interest, of financing receivable originated more than five years prior to current fiscal year. Excludes net investment in lease. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 79 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479294/326-20-55-79 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479319/326-20-50-6 Reference 3: 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_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYear
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount, excluding accrued interest, of writeoff of financing receivable originated more than five years before current fiscal year. Excludes net investment in lease. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479319/326-20-50-6 + Details
Name: | us-gaap_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanFiveYearsBeforeCurrentFiscalYearWriteoff
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amortized cost excluding accrued interest, of financing receivable that can be withdrawn, repaid, and redrawn. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 79 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479294/326-20-55-79 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479319/326-20-50-6 Reference 3: 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_FinancingReceivableExcludingAccruedInterestRevolving
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount, excluding accrued interest, of writeoff of financing receivable that can be withdrawn, repaid, and redrawn. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479319/326-20-50-6 + Details
Name: | us-gaap_FinancingReceivableExcludingAccruedInterestRevolvingWriteoff
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amortized cost excluding accrued interest, of financing receivable originated four years prior to current fiscal year. Excludes net investment in lease. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 79 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479294/326-20-55-79 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479319/326-20-50-6 Reference 3: 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_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount, excluding accrued interest, of writeoff of financing receivable originated four years before current fiscal year. Excludes net investment in lease. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479319/326-20-50-6 + Details
Name: | us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYearWriteoff
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amortized cost excluding accrued interest, of financing receivable originated three years prior to current fiscal year. Excludes net investment in lease. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 79 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479294/326-20-55-79 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479319/326-20-50-6 Reference 3: 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_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount, excluding accrued interest, of writeoff of financing receivable originated three years before current fiscal year. Excludes net investment in lease. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479319/326-20-50-6 + Details
Name: | us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYearWriteoff
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amortized cost excluding accrued interest, of financing receivable originated in current fiscal year. Excludes net investment in lease. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 79 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479294/326-20-55-79 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479319/326-20-50-6 Reference 3: 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_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYear
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount, excluding accrued interest, of writeoff of financing receivable originated in current fiscal year. Excludes net investment in lease. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479319/326-20-50-6 + Details
Name: | us-gaap_FinancingReceivableExcludingAccruedInterestYearOneOriginatedCurrentFiscalYearWriteoff
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amortized cost excluding accrued interest, of financing receivable originated two years prior to current fiscal year. Excludes net investment in lease. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 79 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479294/326-20-55-79 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479319/326-20-50-6 Reference 3: 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_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYear
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount, excluding accrued interest, of writeoff of financing receivable originated two years before current fiscal year. Excludes net investment in lease. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479319/326-20-50-6 + Details
Name: | us-gaap_FinancingReceivableExcludingAccruedInterestYearThreeOriginatedTwoYearsBeforeCurrentFiscalYearWriteoff
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amortized cost excluding accrued interest of financing receivable originated in fiscal year prior to current fiscal year. Excludes net investment in lease. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 79 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479294/326-20-55-79 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479319/326-20-50-6 Reference 3: 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_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYear
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount, excluding accrued interest, of writeoff of financing receivable originated in fiscal year before current fiscal year. Excludes net investment in lease. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479319/326-20-50-6 + Details
Name: | us-gaap_FinancingReceivableExcludingAccruedInterestYearTwoOriginatedFiscalYearBeforeCurrentFiscalYearWriteoff
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

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

X
- Details
Name: | us-gaap_InternalCreditAssessmentAxis=us-gaap_PassMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_InternalCreditAssessmentAxis=us-gaap_SpecialMentionMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_InternalCreditAssessmentAxis=us-gaap_SubstandardMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_GuaranteeObligationsByNatureAxis=agm_LongTermStandbyPurchaseCommitmentsAndGuaranteedSecuritiesMember
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: |