XML 98 R72.htm IDEA: XBRL DOCUMENT
v3.25.0.1

LOANS - Schedule of Financing Receivables 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 - Farm & Ranch loans |  |  |
Year One |  |  |
Total | 1,134,818 | 604,837 |
Current period charge-offs | 0 | 0 |
Year Two |  |  |
Total | 588,639 | 1,207,742 |
Current period charge-offs | 0 | 0 |
Year Three |  |  |
Total | 1,165,169 | 1,691,901 |
Current period charge-offs | 0 | 0 |
Year Four |  |  |
Total | 1,626,242 | 1,149,903 |
Current period charge-offs | 101 | 0 |
Year Five |  |  |
Total | 1,087,730 | 357,646 |
Current period charge-offs | 0 | 0 |
Prior |  |  |
Total | 1,403,027 | 1,148,725 |
Current period charge-offs | 0 | 0 |
Revolving Loans - Amortized Cost Basis |  |  |
Total | 447,390 | 404,957 |
Current period charge-offs | 0 | 0 |
Total |  |  |
Total | 7,453,015 | 6,565,711 |
Current period charge-offs | 101 | 0 | $ 84
Agricultural Finance - Corporate AgFinance loans |  |  |
Year One |  |  |
Total | 210,807 | 207,279 |
Current period charge-offs | 0 | 0 |
Year Two |  |  |
Total | 197,237 | 112,444 |
Current period charge-offs | 0 | 0 |
Year Three |  |  |
Total | 72,512 | 277,400 |
Current period charge-offs | 455 | 0 |
Year Four |  |  |
Total | 250,050 | 173,980 |
Current period charge-offs | 0 | 0 |
Year Five |  |  |
Total | 169,860 | 119,685 |
Current period charge-offs | 0 | 0 |
Prior |  |  |
Total | 194,833 | 112,947 |
Current period charge-offs | 0 | 0 |
Revolving Loans - Amortized Cost Basis |  |  |
Total | 286,375 | 255,988 |
Current period charge-offs | 3,942 | 0 |
Total |  |  |
Total | 1,381,674 | 1,259,723 |
Current period charge-offs | 4,397 | 0 | 0
Infrastructure Finance loans |  |  |
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 | Agricultural Finance - Farm & Ranch loans |  |  |
Year One |  |  |
Total | 987,444 | 530,956 |
Year Two |  |  |
Total | 525,559 | 1,137,226 |
Year Three |  |  |
Total | 1,079,933 | 1,653,780 |
Year Four |  |  |
Total | 1,577,305 | 1,120,917 |
Year Five |  |  |
Total | 1,019,779 | 323,922 |
Prior |  |  |
Total | 1,287,334 | 1,068,862 |
Revolving Loans - Amortized Cost Basis |  |  |
Total | 404,950 | 385,766 |
Total |  |  |
Total | 6,882,304 | 6,221,429 |
Acceptable | Agricultural Finance - Corporate AgFinance loans |  |  |
Year One |  |  |
Total | 210,807 | 207,279 |
Year Two |  |  |
Total | 152,918 | 97,922 |
Year Three |  |  |
Total | 64,860 | 261,992 |
Year Four |  |  |
Total | 235,493 | 123,158 |
Year Five |  |  |
Total | 80,085 | 99,352 |
Prior |  |  |
Total | 161,354 | 112,947 |
Revolving Loans - Amortized Cost Basis |  |  |
Total | 262,295 | 254,325 |
Total |  |  |
Total | 1,167,812 | 1,156,975 |
Acceptable | Infrastructure Finance loans |  |  |
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 | Agricultural Finance - Farm & Ranch loans |  |  |
Year One |  |  |
Total | 139,297 | 70,524 |
Year Two |  |  |
Total | 34,290 | 46,529 |
Year Three |  |  |
Total | 32,886 | 27,957 |
Year Four |  |  |
Total | 24,204 | 11,591 |
Year Five |  |  |
Total | 7,533 | 4,782 |
Prior |  |  |
Total | 23,099 | 21,257 |
Revolving Loans - Amortized Cost Basis |  |  |
Total | 22,087 | 8,777 |
Total |  |  |
Total | 283,396 | 191,417 |
Special mention | Agricultural Finance - Corporate AgFinance loans |  |  |
Year One |  |  |
Total | 0 | 0 |
Year Two |  |  |
Total | 37,010 | 14,522 |
Year Three |  |  |
Total | 0 | 15,408 |
Year Four |  |  |
Total | 14,557 | 50,822 |
Year Five |  |  |
Total | 75,440 | 20,333 |
Prior |  |  |
Total | 0 | 0 |
Revolving Loans - Amortized Cost Basis |  |  |
Total | 7,158 | 1,663 |
Total |  |  |
Total | 134,165 | 102,748 |
Special mention | Infrastructure Finance loans |  |  |
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 | Agricultural Finance - Farm & Ranch loans |  |  |
Year One |  |  |
Total | 8,077 | 3,357 |
Year Two |  |  |
Total | 28,790 | 23,987 |
Year Three |  |  |
Total | 52,350 | 10,164 |
Year Four |  |  |
Total | 24,733 | 17,395 |
Year Five |  |  |
Total | 60,418 | 28,942 |
Prior |  |  |
Total | 92,594 | 58,606 |
Revolving Loans - Amortized Cost Basis |  |  |
Total | 20,353 | 10,414 |
Total |  |  |
Total | 287,315 | 152,865 |
Substandard | Agricultural Finance - Corporate AgFinance loans |  |  |
Year One |  |  |
Total | 0 | 0 |
Year Two |  |  |
Total | 7,309 | 0 |
Year Three |  |  |
Total | 7,652 | 0 |
Year Four |  |  |
Total | 0 | 0 |
Year Five |  |  |
Total | 14,335 | 0 |
Prior |  |  |
Total | 33,479 | 0 |
Revolving Loans - Amortized Cost Basis |  |  |
Total | 16,922 | 0 |
Total |  |  |
Total | 79,697 | 0 |
Substandard | Infrastructure Finance loans |  |  |
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 |

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_AgricultureFinanceFarmAndRanchSegmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementBusinessSegmentsAxis=agm_AgricultureFinanceCorporateAgFinanceSegmentMember
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: |