XML 119 R93.htm IDEA: XBRL DOCUMENT
v3.25.0.1

GUARANTEES AND COMMITMENTS - Credit Quality Indicators (Details) - USD ($) $ in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2024 | Dec. 31, 2023 | Dec. 31, 2022
Total |  |  |
Total | $ 11,183,408 | $ 9,623,119 |
Agricultural Finance |  |  |
Total |  |  |
Current period charge-offs | 4,498 | 0 | $ 84
Infrastructure Finance |  |  |
Year One |  |  |
Total | 1,158,427 | 618,946 |
Current period charge-offs | 0 | 0 |
Year Two |  |  |
Total | 534,499 | 720,522 |
Current period charge-offs | 0 | 0 |
Year Three |  |  |
Total | 642,402 | 187,746 |
Current period charge-offs | 0 | 0 |
Year Four |  |  |
Total | 174,232 | 593,841 |
Current period charge-offs | 0 | 0 |
Year Five |  |  |
Total | 574,135 | 701,937 |
Current period charge-offs | 0 | 0 |
Prior |  |  |
Total | 1,229,626 | 611,548 |
Current period charge-offs | 0 | 0 |
Revolving Loans - Amortized Cost Basis |  |  |
Total | 461,162 | 100,223 |
Current period charge-offs | 0 | 0 |
Total |  |  |
Total | 4,774,483 | 3,534,763 |
Current period charge-offs | 0 | 0 | $ 0
Acceptable | Infrastructure Finance |  |  |
Year One |  |  |
Total | 1,158,427 | 618,946 |
Year Two |  |  |
Total | 521,143 | 681,272 |
Year Three |  |  |
Total | 578,882 | 187,746 |
Year Four |  |  |
Total | 174,232 | 593,841 |
Year Five |  |  |
Total | 574,135 | 701,937 |
Prior |  |  |
Total | 1,229,626 | 611,548 |
Revolving Loans - Amortized Cost Basis |  |  |
Total | 461,162 | 100,223 |
Total |  |  |
Total | 4,697,607 | 3,495,513 |
Special mention | Infrastructure Finance |  |  |
Year One |  |  |
Total | 0 | 0 |
Year Two |  |  |
Total | 0 | 9,850 |
Year Three |  |  |
Total | 34,388 | 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 | 34,388 | 9,850 |
Substandard | Infrastructure Finance |  |  |
Year One |  |  |
Total | 0 | 0 |
Year Two |  |  |
Total | 13,356 | 29,400 |
Year Three |  |  |
Total | 29,132 | 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 | 42,488 | 29,400 |
Long-Term Standby Purchase Commitments and Guaranteed Securities |  |  |
Total |  |  |
Total | 4,267,519 | 3,932,857 |
Long-Term Standby Purchase Commitments and Guaranteed Securities | Agricultural Finance |  |  |
Year One |  |  |
Total | 70,757 | 169,429 |
Current period charge-offs | 0 | 0 |
Year Two |  |  |
Total | 169,609 | 246,512 |
Current period charge-offs | 0 | 0 |
Year Three |  |  |
Total | 273,717 | 517,862 |
Current period charge-offs | 0 | 0 |
Year Four |  |  |
Total | 580,836 | 535,398 |
Current period charge-offs | 0 | 0 |
Year Five |  |  |
Total | 594,297 | 266,882 |
Current period charge-offs | 0 | 0 |
Prior |  |  |
Total | 1,379,249 | 1,256,770 |
Current period charge-offs | 0 | 0 |
Revolving Loans - Amortized Cost Basis |  |  |
Total | 466,323 | 404,991 |
Current period charge-offs | 0 | 0 |
Total |  |  |
Total | 3,534,788 | 3,397,844 |
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 | 355,848 | 419,190 |
Current period charge-offs | 0 | 0 |
Revolving Loans - Amortized Cost Basis |  |  |
Total | 376,883 | 115,823 |
Current period charge-offs | 0 | 0 |
Total |  |  |
Total | 732,731 | 535,013 |
Current period charge-offs | 0 | 0 |
Long-Term Standby Purchase Commitments and Guaranteed Securities | Acceptable | Agricultural Finance |  |  |
Year One |  |  |
Total | 70,757 | 169,429 |
Year Two |  |  |
Total | 163,646 | 246,441 |
Year Three |  |  |
Total | 267,551 | 515,396 |
Year Four |  |  |
Total | 563,747 | 534,395 |
Year Five |  |  |
Total | 583,598 | 264,815 |
Prior |  |  |
Total | 1,312,988 | 1,185,811 |
Revolving Loans - Amortized Cost Basis |  |  |
Total | 452,909 | 391,335 |
Total |  |  |
Total | 3,415,196 | 3,307,622 |
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 | 355,848 | 419,190 |
Revolving Loans - Amortized Cost Basis |  |  |
Total | 376,883 | 115,823 |
Total |  |  |
Total | 732,731 | 535,013 |
Long-Term Standby Purchase Commitments and Guaranteed Securities | Special mention | Agricultural Finance |  |  |
Year One |  |  |
Total | 0 | 0 |
Year Two |  |  |
Total | 5,963 | 71 |
Year Three |  |  |
Total | 4,920 | 2,466 |
Year Four |  |  |
Total | 15,954 | 872 |
Year Five |  |  |
Total | 4,354 | 531 |
Prior |  |  |
Total | 44,964 | 44,631 |
Revolving Loans - Amortized Cost Basis |  |  |
Total | 12,197 | 8,565 |
Total |  |  |
Total | 88,352 | 57,136 |
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 | 1,246 | 0 |
Year Four |  |  |
Total | 1,135 | 131 |
Year Five |  |  |
Total | 6,345 | 1,536 |
Prior |  |  |
Total | 21,297 | 26,328 |
Revolving Loans - Amortized Cost Basis |  |  |
Total | 1,217 | 5,091 |
Total |  |  |
Total | 31,240 | 33,086 |
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_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: |