XML 75 R64.htm IDEA: XBRL DOCUMENT
v3.25.2

GUARANTEES AND COMMITMENTS - Credit Quality Indicators (Details) - USD ($) $ in Thousands | 3 Months Ended | 6 Months Ended |
--- | --- | --- | ---
Jun. 30, 2025 | Jun. 30, 2024 | Jun. 30, 2025 | Jun. 30, 2024 | Dec. 31, 2024
Total |  |  |  |  |
Total | $ 12,226,915 |  | $ 12,226,915 |  | $ 11,183,408
Agricultural Finance |  |  |  |  |
Total |  |  |  |  |
Current period charge-offs | 2,840 | $ 4,043 | 2,840 | $ 4,043 |
Infrastructure Finance |  |  |  |  |
Year One |  |  |  |  |
Total | 587,381 |  | 587,381 |  | 1,158,427
Current period charge-offs | 0 | 0 | 0 | 0 |
Year Two |  |  |  |  |
Total | 1,256,486 |  | 1,256,486 |  | 534,499
Current period charge-offs | 0 | 0 | 0 | 0 |
Year Three |  |  |  |  |
Total | 603,926 |  | 603,926 |  | 642,402
Current period charge-offs | 0 | 0 | 0 | 0 |
Year Four |  |  |  |  |
Total | 637,172 |  | 637,172 |  | 174,232
Current period charge-offs | 0 | 0 | 0 | 0 |
Year Five |  |  |  |  |
Total | 181,651 |  | 181,651 |  | 574,135
Current period charge-offs | 0 | 0 | 0 | 0 |
Prior |  |  |  |  |
Total | 1,730,271 |  | 1,730,271 |  | 1,229,626
Current period charge-offs | 0 | 0 | 0 | 0 |
Revolving Loans - Amortized Cost Basis |  |  |  |  |
Total | 487,769 |  | 487,769 |  | 461,162
Current period charge-offs | 0 | 0 | 0 | 0 |
Total |  |  |  |  |
Total | 5,484,656 |  | 5,484,656 |  | 4,774,483
Current period charge-offs | 0 | 0 | 0 | 0 |
Acceptable | Infrastructure Finance |  |  |  |  |
Year One |  |  |  |  |
Total | 587,381 |  | 587,381 |  | 1,158,427
Year Two |  |  |  |  |
Total | 1,256,486 |  | 1,256,486 |  | 521,143
Year Three |  |  |  |  |
Total | 578,282 |  | 578,282 |  | 578,882
Year Four |  |  |  |  |
Total | 580,908 |  | 580,908 |  | 174,232
Year Five |  |  |  |  |
Total | 181,651 |  | 181,651 |  | 574,135
Prior |  |  |  |  |
Total | 1,730,271 |  | 1,730,271 |  | 1,229,626
Revolving Loans - Amortized Cost Basis |  |  |  |  |
Total | 487,769 |  | 487,769 |  | 461,162
Total |  |  |  |  |
Total | 5,402,748 |  | 5,402,748 |  | 4,697,607
Special mention | Infrastructure Finance |  |  |  |  |
Year One |  |  |  |  |
Total | 0 |  | 0 |  | 0
Year Two |  |  |  |  |
Total | 0 |  | 0 |  | 0
Year Three |  |  |  |  |
Total | 0 |  | 0 |  | 34,388
Year Four |  |  |  |  |
Total | 9,699 |  | 9,699 |  | 0
Year Five |  |  |  |  |
Total | 0 |  | 0 |  | 0
Prior |  |  |  |  |
Total | 0 |  | 0 |  | 0
Revolving Loans - Amortized Cost Basis |  |  |  |  |
Total | 0 |  | 0 |  | 0
Total |  |  |  |  |
Total | 9,699 |  | 9,699 |  | 34,388
Substandard | Infrastructure Finance |  |  |  |  |
Year One |  |  |  |  |
Total | 0 |  | 0 |  | 0
Year Two |  |  |  |  |
Total | 0 |  | 0 |  | 13,356
Year Three |  |  |  |  |
Total | 25,644 |  | 25,644 |  | 29,132
Year Four |  |  |  |  |
Total | 46,565 |  | 46,565 |  | 0
Year Five |  |  |  |  |
Total | 0 |  | 0 |  | 0
Prior |  |  |  |  |
Total | 0 |  | 0 |  | 0
Revolving Loans - Amortized Cost Basis |  |  |  |  |
Total | 0 |  | 0 |  | 0
Total |  |  |  |  |
Total | 72,209 |  | 72,209 |  | 42,488
Long-Term Standby Purchase Commitments and Guaranteed Securities |  |  |  |  |
Total |  |  |  |  |
Total | 4,634,352 |  | 4,634,352 |  | 4,267,519
Long-Term Standby Purchase Commitments and Guaranteed Securities | Agricultural Finance |  |  |  |  |
Year One |  |  |  |  |
Total | 36,634 |  | 36,634 |  | 70,757
Current period charge-offs | 0 | 0 | 0 | 0 |
Year Two |  |  |  |  |
Total | 87,943 |  | 87,943 |  | 169,609
Current period charge-offs | 0 | 0 | 0 | 0 |
Year Three |  |  |  |  |
Total | 169,964 |  | 169,964 |  | 273,717
Current period charge-offs | 0 | 0 | 0 | 0 |
Year Four |  |  |  |  |
Total | 267,236 |  | 267,236 |  | 580,836
Current period charge-offs | 0 | 0 | 0 | 0 |
Year Five |  |  |  |  |
Total | 570,045 |  | 570,045 |  | 594,297
Current period charge-offs | 0 | 0 | 0 | 0 |
Prior |  |  |  |  |
Total | 1,880,137 |  | 1,880,137 |  | 1,379,249
Current period charge-offs | 0 | 0 | 0 | 0 |
Revolving Loans - Amortized Cost Basis |  |  |  |  |
Total | 468,067 |  | 468,067 |  | 466,323
Current period charge-offs | 0 | 0 | 0 | 0 |
Total |  |  |  |  |
Total | 3,480,026 |  | 3,480,026 |  | 3,534,788
Current period charge-offs | 0 | 0 | 0 | 0 |
Long-Term Standby Purchase Commitments and Guaranteed Securities | Infrastructure Finance |  |  |  |  |
Year One |  |  |  |  |
Total | 0 |  | 0 |  | 0
Current period charge-offs | 0 | 0 | 0 | 0 |
Year Two |  |  |  |  |
Total | 0 |  | 0 |  | 0
Current period charge-offs | 0 | 0 | 0 | 0 |
Year Three |  |  |  |  |
Total | 0 |  | 0 |  | 0
Current period charge-offs | 0 | 0 | 0 | 0 |
Year Four |  |  |  |  |
Total | 0 |  | 0 |  | 0
Current period charge-offs | 0 | 0 | 0 | 0 |
Year Five |  |  |  |  |
Total | 0 |  | 0 |  | 0
Current period charge-offs | 0 | 0 | 0 | 0 |
Prior |  |  |  |  |
Total | 342,546 |  | 342,546 |  | 355,848
Current period charge-offs | 0 | 0 | 0 | 0 |
Revolving Loans - Amortized Cost Basis |  |  |  |  |
Total | 811,780 |  | 811,780 |  | 376,883
Current period charge-offs | 0 | 0 | 0 | 0 |
Total |  |  |  |  |
Total | 1,154,326 |  | 1,154,326 |  | 732,731
Current period charge-offs | 0 | $ 0 | 0 | $ 0 |
Long-Term Standby Purchase Commitments and Guaranteed Securities | Acceptable | Agricultural Finance |  |  |  |  |
Year One |  |  |  |  |
Total | 36,634 |  | 36,634 |  | 70,757
Year Two |  |  |  |  |
Total | 87,943 |  | 87,943 |  | 163,646
Year Three |  |  |  |  |
Total | 162,125 |  | 162,125 |  | 267,551
Year Four |  |  |  |  |
Total | 246,485 |  | 246,485 |  | 563,747
Year Five |  |  |  |  |
Total | 548,374 |  | 548,374 |  | 583,598
Prior |  |  |  |  |
Total | 1,813,260 |  | 1,813,260 |  | 1,312,988
Revolving Loans - Amortized Cost Basis |  |  |  |  |
Total | 455,175 |  | 455,175 |  | 452,909
Total |  |  |  |  |
Total | 3,349,996 |  | 3,349,996 |  | 3,415,196
Long-Term Standby Purchase Commitments and Guaranteed Securities | Acceptable | Infrastructure Finance |  |  |  |  |
Year One |  |  |  |  |
Total | 0 |  | 0 |  | 0
Year Two |  |  |  |  |
Total | 0 |  | 0 |  | 0
Year Three |  |  |  |  |
Total | 0 |  | 0 |  | 0
Year Four |  |  |  |  |
Total | 0 |  | 0 |  | 0
Year Five |  |  |  |  |
Total | 0 |  | 0 |  | 0
Prior |  |  |  |  |
Total | 342,546 |  | 342,546 |  | 355,848
Revolving Loans - Amortized Cost Basis |  |  |  |  |
Total | 809,740 |  | 809,740 |  | 376,883
Total |  |  |  |  |
Total | 1,152,286 |  | 1,152,286 |  | 732,731
Long-Term Standby Purchase Commitments and Guaranteed Securities | Special mention | Agricultural Finance |  |  |  |  |
Year One |  |  |  |  |
Total | 0 |  | 0 |  | 0
Year Two |  |  |  |  |
Total | 0 |  | 0 |  | 5,963
Year Three |  |  |  |  |
Total | 7,839 |  | 7,839 |  | 4,920
Year Four |  |  |  |  |
Total | 20,751 |  | 20,751 |  | 15,954
Year Five |  |  |  |  |
Total | 7,589 |  | 7,589 |  | 4,354
Prior |  |  |  |  |
Total | 43,494 |  | 43,494 |  | 44,964
Revolving Loans - Amortized Cost Basis |  |  |  |  |
Total | 12,572 |  | 12,572 |  | 12,197
Total |  |  |  |  |
Total | 92,245 |  | 92,245 |  | 88,352
Long-Term Standby Purchase Commitments and Guaranteed Securities | Special mention | Infrastructure Finance |  |  |  |  |
Year One |  |  |  |  |
Total | 0 |  | 0 |  | 0
Year Two |  |  |  |  |
Total | 0 |  | 0 |  | 0
Year Three |  |  |  |  |
Total | 0 |  | 0 |  | 0
Year Four |  |  |  |  |
Total | 0 |  | 0 |  | 0
Year Five |  |  |  |  |
Total | 0 |  | 0 |  | 0
Prior |  |  |  |  |
Total | 0 |  | 0 |  | 0
Revolving Loans - Amortized Cost Basis |  |  |  |  |
Total | 0 |  | 0 |  | 0
Total |  |  |  |  |
Total | 0 |  | 0 |  | 0
Long-Term Standby Purchase Commitments and Guaranteed Securities | Substandard | Agricultural Finance |  |  |  |  |
Year One |  |  |  |  |
Total | 0 |  | 0 |  | 0
Year Two |  |  |  |  |
Total | 0 |  | 0 |  | 0
Year Three |  |  |  |  |
Total | 0 |  | 0 |  | 1,246
Year Four |  |  |  |  |
Total | 0 |  | 0 |  | 1,135
Year Five |  |  |  |  |
Total | 14,082 |  | 14,082 |  | 6,345
Prior |  |  |  |  |
Total | 23,383 |  | 23,383 |  | 21,297
Revolving Loans - Amortized Cost Basis |  |  |  |  |
Total | 320 |  | 320 |  | 1,217
Total |  |  |  |  |
Total | 37,785 |  | 37,785 |  | 31,240
Long-Term Standby Purchase Commitments and Guaranteed Securities | Substandard | Infrastructure Finance |  |  |  |  |
Year One |  |  |  |  |
Total | 0 |  | 0 |  | 0
Year Two |  |  |  |  |
Total | 0 |  | 0 |  | 0
Year Three |  |  |  |  |
Total | 0 |  | 0 |  | 0
Year Four |  |  |  |  |
Total | 0 |  | 0 |  | 0
Year Five |  |  |  |  |
Total | 0 |  | 0 |  | 0
Prior |  |  |  |  |
Total | 0 |  | 0 |  | 0
Revolving Loans - Amortized Cost Basis |  |  |  |  |
Total | 2,040 |  | 2,040 |  | 0
Total |  |  |  |  |
Total | $ 2,040 |  | $ 2,040 |  | $ 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 13 -Subparagraph (d) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479319/326-20-50-13 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 + 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_AgriculturalFinanceMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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: |