XML 128 R69.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

FAIR VALUE DISCLOSURES - Schedule of Fair Value Measurements (Details) - USD ($) $ in Thousands | Mar. 31, 2024 | Dec. 31, 2023
--- | --- | ---
Assets: |  |
Financial derivatives | $ 31,433 | $ 37,478
Liabilities: |  |
Financial derivatives | 128,530 | 117,131
Investment Securities |  |
Assets: |  |
Available-for-sale, at fair value | 5,007,787 | $ 4,918,931
Farmer Mac Guaranteed Securities |  |
Assets: |  |
Available-for-sale, at fair value | $ 5,466,688 |
Level 3 |  |
Liabilities: |  |
Percent of level three fair value assets and liabilities | 18.00% | 19.00%
Financial instruments level three percent | 52.00% | 52.00%
Recurring |  |
Assets: |  |
Financial derivatives | $ 31,433 | $ 37,478
Guarantee Asset | 5,733 | 5,831
Total Assets at fair value | 10,512,707 | 10,495,960
Liabilities: |  |
Financial derivatives | 128,530 | 117,131
Total Liabilities at fair value | 128,530 | 117,131
Recurring | USDA Securities: |  |
Assets: |  |
Trading | 1,066 | 1,241
Recurring | Investment Securities |  |
Assets: |  |
Available-for-sale, at fair value | 5,007,787 | 4,918,931
Recurring | Farmer Mac Guaranteed Securities |  |
Assets: |  |
Available-for-sale, at fair value | 5,466,688 | 5,532,479
Recurring | Level 1 |  |
Assets: |  |
Financial derivatives | 680 | 11
Guarantee Asset | 0 | 0
Total Assets at fair value | 936,732 | 905,811
Liabilities: |  |
Financial derivatives | 0 | 91
Total Liabilities at fair value | 0 | 91
Recurring | Level 1 | USDA Securities: |  |
Assets: |  |
Trading | 0 | 0
Recurring | Level 1 | Investment Securities |  |
Assets: |  |
Available-for-sale, at fair value | 936,052 | 905,800
Recurring | Level 1 | Farmer Mac Guaranteed Securities |  |
Assets: |  |
Available-for-sale, at fair value | 0 | 0
Recurring | Level 2 |  |
Assets: |  |
Financial derivatives | 30,753 | 37,467
Guarantee Asset | 0 | 0
Total Assets at fair value | 4,083,207 | 4,031,516
Liabilities: |  |
Financial derivatives | 128,530 | 117,040
Total Liabilities at fair value | 128,530 | 117,040
Recurring | Level 2 | USDA Securities: |  |
Assets: |  |
Trading | 0 | 0
Recurring | Level 2 | Investment Securities |  |
Assets: |  |
Available-for-sale, at fair value | 4,052,454 | 3,994,049
Recurring | Level 2 | Farmer Mac Guaranteed Securities |  |
Assets: |  |
Available-for-sale, at fair value | 0 | 0
Recurring | Level 3 |  |
Assets: |  |
Financial derivatives | 0 | 0
Guarantee Asset | 5,733 | 5,831
Total Assets at fair value | 5,492,768 | 5,558,633
Liabilities: |  |
Financial derivatives | 0 | 0
Total Liabilities at fair value | 0 | 0
Recurring | Level 3 | USDA Securities: |  |
Assets: |  |
Trading | 1,066 | 1,241
Recurring | Level 3 | Investment Securities |  |
Assets: |  |
Available-for-sale, at fair value | 19,281 | 19,082
Recurring | Level 3 | Farmer Mac Guaranteed Securities |  |
Assets: |  |
Available-for-sale, at fair value | 5,466,688 | 5,532,479
AgVantage | Recurring | Farmer Mac Guaranteed Securities |  |
Assets: |  |
Available-for-sale, at fair value | 5,457,197 | 5,522,712
AgVantage | Recurring | Level 1 | Farmer Mac Guaranteed Securities |  |
Assets: |  |
Available-for-sale, at fair value | 0 | 0
AgVantage | Recurring | Level 2 | Farmer Mac Guaranteed Securities |  |
Assets: |  |
Available-for-sale, at fair value | 0 | 0
AgVantage | Recurring | Level 3 | Farmer Mac Guaranteed Securities |  |
Assets: |  |
Available-for-sale, at fair value | 5,457,197 | 5,522,712
Farmer Mac Guaranteed USDA Securities | Recurring | Farmer Mac Guaranteed Securities |  |
Assets: |  |
Available-for-sale, at fair value | 9,491 | 9,767
Farmer Mac Guaranteed USDA Securities | Recurring | Level 1 | Farmer Mac Guaranteed Securities |  |
Assets: |  |
Available-for-sale, at fair value | 0 | 0
Farmer Mac Guaranteed USDA Securities | Recurring | Level 2 | Farmer Mac Guaranteed Securities |  |
Assets: |  |
Available-for-sale, at fair value | 0 | 0
Farmer Mac Guaranteed USDA Securities | Recurring | Level 3 | Farmer Mac Guaranteed Securities |  |
Assets: |  |
Available-for-sale, at fair value | 9,491 | 9,767
USDA Securities | Recurring | USDA Securities: |  |
Assets: |  |
Trading | 1,066 | 1,241
USDA Securities | Recurring | Level 1 | USDA Securities: |  |
Assets: |  |
Trading | 0 | 0
USDA Securities | Recurring | Level 2 | USDA Securities: |  |
Assets: |  |
Trading | 0 | 0
USDA Securities | Recurring | Level 3 | USDA Securities: |  |
Assets: |  |
Trading | 1,066 | 1,241
Floating interest rate | Floating rate auction-rate certificates backed by Government guaranteed student loans |  |
Assets: |  |
Available-for-sale, at fair value | 19,281 | 19,082
Floating interest rate | Guaranteed mortgage-backed securities |  |
Assets: |  |
Available-for-sale, at fair value | 2,380,066 | 2,424,434
Floating interest rate | US Treasuries |  |
Assets: |  |
Available-for-sale, at fair value | 49,996 | 49,968
Floating interest rate | Recurring | Floating rate auction-rate certificates backed by Government guaranteed student loans |  |
Assets: |  |
Available-for-sale, at fair value | 19,281 | 19,082
Floating interest rate | Recurring | Guaranteed mortgage-backed securities |  |
Assets: |  |
Available-for-sale, at fair value | 2,380,066 | 2,424,434
Floating interest rate | Recurring | Floating rate U.S. Treasuries |  |
Assets: |  |
Available-for-sale, at fair value | 49,996 | 49,968
Floating interest rate | Recurring | Level 1 | Floating rate auction-rate certificates backed by Government guaranteed student loans |  |
Assets: |  |
Available-for-sale, at fair value | 0 | 0
Floating interest rate | Recurring | Level 1 | Guaranteed mortgage-backed securities |  |
Assets: |  |
Available-for-sale, at fair value | 0 | 0
Floating interest rate | Recurring | Level 1 | Floating rate U.S. Treasuries |  |
Assets: |  |
Available-for-sale, at fair value | 49,996 | 49,968
Floating interest rate | Recurring | Level 2 | Floating rate auction-rate certificates backed by Government guaranteed student loans |  |
Assets: |  |
Available-for-sale, at fair value | 0 | 0
Floating interest rate | Recurring | Level 2 | Guaranteed mortgage-backed securities |  |
Assets: |  |
Available-for-sale, at fair value | 2,380,066 | 2,424,434
Floating interest rate | Recurring | Level 2 | Floating rate U.S. Treasuries |  |
Assets: |  |
Available-for-sale, at fair value | 0 | 0
Floating interest rate | Recurring | Level 3 | Floating rate auction-rate certificates backed by Government guaranteed student loans |  |
Assets: |  |
Available-for-sale, at fair value | 19,281 | 19,082
Floating interest rate | Recurring | Level 3 | Guaranteed mortgage-backed securities |  |
Assets: |  |
Available-for-sale, at fair value | 0 | 0
Floating interest rate | Recurring | Level 3 | Floating rate U.S. Treasuries |  |
Assets: |  |
Available-for-sale, at fair value | 0 | 0
Fixed Interest Rate | Guaranteed mortgage-backed securities |  |
Assets: |  |
Available-for-sale, at fair value | 1,672,388 | 1,569,615
Fixed Interest Rate | US Treasuries |  |
Assets: |  |
Available-for-sale, at fair value | 886,056 | 855,832
Fixed Interest Rate | Recurring | Guaranteed mortgage-backed securities |  |
Assets: |  |
Available-for-sale, at fair value | 1,672,388 | 1,569,615
Fixed Interest Rate | Recurring | US Treasuries |  |
Assets: |  |
Available-for-sale, at fair value | 886,056 | 855,832
Fixed Interest Rate | Recurring | Level 1 | Guaranteed mortgage-backed securities |  |
Assets: |  |
Available-for-sale, at fair value | 0 | 0
Fixed Interest Rate | Recurring | Level 1 | US Treasuries |  |
Assets: |  |
Available-for-sale, at fair value | 886,056 | 855,832
Fixed Interest Rate | Recurring | Level 2 | Guaranteed mortgage-backed securities |  |
Assets: |  |
Available-for-sale, at fair value | 1,672,388 | 1,569,615
Fixed Interest Rate | Recurring | Level 2 | US Treasuries |  |
Assets: |  |
Available-for-sale, at fair value | 0 | 0
Fixed Interest Rate | Recurring | Level 3 | Guaranteed mortgage-backed securities |  |
Assets: |  |
Available-for-sale, at fair value | 0 | 0
Fixed Interest Rate | Recurring | Level 3 | US Treasuries |  |
Assets: |  |
Available-for-sale, at fair value | $ 0 | $ 0

X
- Definition Fair Value, Assets and Liabilities Fair Value as Percent of Total Assets + References No definition available. + Details
Name: | agm_FairValueAssetsAndLiabilitiesFairValueAsPercentOfTotalAssets
Namespace Prefix: | agm_
Data Type: | dtr-types1:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Fair Value, Assets and Liabilities, Fair Value as Percent of Total Financial Instruments Measured at Fair Value + References No definition available. + Details
Name: | agm_FairValueAssetsAndLiabilitiesFairValueAsPercentOfTotalFinancialInstrumentsMeasuredAtFairValue
Namespace Prefix: | agm_
Data Type: | dtr-types1:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Guarantee Asset + References No definition available. + Details
Name: | agm_GuaranteeAsset
Namespace Prefix: | agm_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Fair value portion of probable future economic benefits obtained or controlled by an entity as a result of past transactions or events. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147482106/820-10-50-2 + Details
Name: | us-gaap_AssetsFairValueDisclosure
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

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

X
- Definition Amount excluding accrued interest, of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 326 -SubTopic 30 -Name Accounting Standards Codification -Section 45 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org//1943274/2147479130/326-30-45-1 + Details
Name: | us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Fair value, after the effects of master netting arrangements, of a financial asset or other contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset. Includes assets not subject to a master netting arrangement and not elected to be offset. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 12 -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-12 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Subparagraph (e) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-6 Reference 3: http://www.xbrl.org/2003/role/exampleRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 55 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org//1943274/2147480493/946-210-55-1 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Subparagraph (a)(1) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-6 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Subparagraph (a)(2) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-6 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Subparagraph (a)(4) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-6 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (a)(1) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-1 Reference 8: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (b)(1) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-1 Reference 9: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (b)(2) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-1 Reference 10: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (c)(2) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-1 Reference 11: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Subparagraph (f) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-6 Reference 12: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Subparagraph (a)(3) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-6 Reference 13: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.6-04(3)(c)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479617/946-210-S99-1 Reference 14: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5C -Subparagraph (SX 210.12-13C(Column H)(Footnote 7)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-5C Reference 15: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.6-04(3)(b)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479617/946-210-S99-1 Reference 16: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5 -Subparagraph (SX 210.12-13(Column A)(Footnote 3)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-5 Reference 17: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5C -Subparagraph (SX 210.12-13C(Column H)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-5C Reference 18: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5A -Subparagraph (SX 210.12-13A(Column E)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-5A Reference 19: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5B -Subparagraph (SX 210.12-13B(Column E)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-5B Reference 20: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5B -Subparagraph (SX 210.12-13B(Column E)(Footnote 4)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-5B Reference 21: http://www.xbrl.org/2003/role/disclosureRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org//1943274/2147483466/210-20-50-3 Reference 22: http://www.xbrl.org/2003/role/exampleRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 22 -Publisher FASB -URI https://asc.fasb.org//1943274/2147483444/210-20-55-22 Reference 23: http://www.xbrl.org/2003/role/disclosureRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 10 -Publisher FASB -URI https://asc.fasb.org//1943274/2147483444/210-20-55-10 Reference 24: http://www.xbrl.org/2003/role/disclosureRef -Topic 825 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 10 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482907/825-10-50-10 + Details
Name: | us-gaap_DerivativeAssets
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Fair value, after the effects of master netting arrangements, of a financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset. Includes liabilities not subject to a master netting arrangement and not elected to be offset. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Subparagraph (e) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-6 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Subparagraph (a)(1) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-6 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Subparagraph (a)(2) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-6 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Subparagraph (a)(4) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-6 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (a)(1) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-1 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (b)(1) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-1 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (b)(2) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-1 Reference 8: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (c)(2) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-1 Reference 9: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Subparagraph (f) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-6 Reference 10: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Subparagraph (a)(3) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-6 Reference 11: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.6-04(9)(e)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479617/946-210-S99-1 Reference 12: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5C -Subparagraph (SX 210.12-13C(Column H)(Footnote 7)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-5C Reference 13: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.6-04(9)(b)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479617/946-210-S99-1 Reference 14: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.6-04(9)(d)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479617/946-210-S99-1 Reference 15: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5 -Subparagraph (SX 210.12-13(Column G)(Footnote 8)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-5 Reference 16: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5C -Subparagraph (SX 210.12-13C(Column H)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-5C Reference 17: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5 -Subparagraph (SX 210.12-13(Column G)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-5 Reference 18: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5A -Subparagraph (SX 210.12-13A(Column E)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-5A Reference 19: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5B -Subparagraph (SX 210.12-13B(Column E)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-5B Reference 20: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5B -Subparagraph (SX 210.12-13B(Column E)(Footnote 4)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-5B Reference 21: http://www.xbrl.org/2003/role/disclosureRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org//1943274/2147483466/210-20-50-3 Reference 22: http://www.xbrl.org/2003/role/exampleRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 22 -Publisher FASB -URI https://asc.fasb.org//1943274/2147483444/210-20-55-22 Reference 23: http://www.xbrl.org/2003/role/disclosureRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 10 -Publisher FASB -URI https://asc.fasb.org//1943274/2147483444/210-20-55-10 Reference 24: http://www.xbrl.org/2003/role/disclosureRef -Topic 825 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 10 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482907/825-10-50-10 + Details
Name: | us-gaap_DerivativeLiabilities
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Fair value of financial and nonfinancial obligations. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147482106/820-10-50-2 + Details
Name: | us-gaap_LiabilitiesFairValueDisclosure
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

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

X
- Definition Amount of investment in debt security measured at fair value with change in fair value recognized in net income (trading). + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 45 -Paragraph 1 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481830/320-10-45-1 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(2)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 Reference 3: http://www.xbrl.org/2003/role/exampleRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section 45 -Paragraph 1 -Subparagraph (f) -Publisher FASB -URI https://asc.fasb.org//1943274/2147483467/210-10-45-1 + Details
Name: | us-gaap_TradingSecuritiesDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_DebtSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

X
- Details
Name: | us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel3Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByMeasurementFrequencyAxis=us-gaap_FairValueMeasurementsRecurringMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByAssetClassAxis=us-gaap_USGovernmentAgenciesDebtSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel1Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel2Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

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

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

X
- Details
Name: | srt_ProductOrServiceAxis=agm_FloatingInterestRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_AuctionRateSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_MortgageBackedSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_USTreasurySecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_UsTreasuryUstInterestRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_ProductOrServiceAxis=agm_FixedInterestRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |