XML 58 R47.htm IDEA: XBRL DOCUMENT
v3.25.2

FINANCIAL DERIVATIVES - Schedule of Derivative Instruments in Statement of Financial Position (Details) - USD ($) $ / shares in Units, $ in Thousands | 6 Months Ended | 12 Months Ended
--- | --- | ---
Jun. 30, 2025 | Dec. 31, 2024
Notional Disclosures [Abstract] |  |
Notional Amount | $ 24,117,672 | $ 24,896,331
Asset |  |
Fair value, asset | 30,650 | 27,789
Netting adjustments | (2,311) | (462)
(Liability) |  |
Fair value, liability | (53,697) | (77,326)
Netting adjustments | 2,311 | 462
Designated as hedge | Fair value hedges: | Receive fixed non-callable |  |
Notional Disclosures [Abstract] |  |
Notional Amount | 6,408,185 | 9,657,181
Asset |  |
Fair value, asset | 2,175 | 5,134
(Liability) |  |
Fair value, liability | $ (5,695) | $ (97)
Weighted- Average Pay Rate | 4.68% | 2.67%
Weighted- Average Receive Rate | 3.43% | 4.56%
Weighted- Average Remaining Term (in years) | 1 year 5 months 12 days | 9 years 1 month 13 days
Designated as hedge | Fair value hedges: | Pay fixed non-callable |  |
Notional Disclosures [Abstract] |  |
Notional Amount | $ 10,009,135 | $ 7,460,685
Asset |  |
Fair value, asset | 136 | 174
(Liability) |  |
Fair value, liability | $ (15,527) | $ (12,165)
Weighted- Average Pay Rate | 2.79% | 4.71%
Weighted- Average Receive Rate | 4.51% | 3.40%
Weighted- Average Remaining Term (in years) | 8 years 9 months | 1 year 6 months 10 days
Designated as hedge | Fair value hedges: | Receive fixed callable |  |
Notional Disclosures [Abstract] |  |
Notional Amount | $ 4,834,383 | $ 4,592,077
Asset |  |
Fair value, asset | 18,655 | 5,119
(Liability) |  |
Fair value, liability | $ (33,969) | $ (65,167)
Weighted- Average Pay Rate | 4.52% | 4.54%
Weighted- Average Receive Rate | 3.75% | 3.67%
Weighted- Average Remaining Term (in years) | 2 years 10 months 6 days | 2 years 7 months 24 days
Designated as hedge | Cash flow hedges: | Pay fixed non-callable |  |
Notional Disclosures [Abstract] |  |
Notional Amount | $ 498,000 | $ 540,000
Asset |  |
Fair value, asset | 11,398 | 16,903
(Liability) |  |
Fair value, liability | $ (295) | $ (2)
Weighted- Average Pay Rate | 1.87% | 1.92%
Weighted- Average Receive Rate | 4.85% | 4.87%
Weighted- Average Remaining Term (in years) | 3 years 2 months 12 days | 3 years 5 months 4 days
No hedge designation | Receive fixed non-callable |  |
Notional Disclosures [Abstract] |  |
Notional Amount | $ 1,563,231 | $ 1,803,328
Asset |  |
Fair value, asset | 104 | 48
(Liability) |  |
Fair value, liability | $ (6) | $ (2)
Weighted- Average Pay Rate | 4.49% | 4.52%
Weighted- Average Receive Rate | 4.13% | 4.43%
Weighted- Average Remaining Term (in years) | 5 months 15 days | 3 months 18 days
No hedge designation | Pay fixed non-callable |  |
Notional Disclosures [Abstract] |  |
Notional Amount | $ 151,854 | $ 157,776
Asset |  |
Fair value, asset | 493 | 819
(Liability) |  |
Fair value, liability | $ (109) | $ (1)
Weighted- Average Pay Rate | 2.97% | 2.92%
Weighted- Average Receive Rate | 4.71% | 4.75%
Weighted- Average Remaining Term (in years) | 3 years 3 months 7 days | 3 years 4 months 24 days
No hedge designation | Basis swaps |  |
Notional Disclosures [Abstract] |  |
Notional Amount | $ 640,384 | $ 655,384
Asset |  |
Fair value, asset | 0 | 8
(Liability) |  |
Fair value, liability | $ (386) | $ (354)
Weighted- Average Pay Rate | 4.65% | 4.69%
Weighted- Average Receive Rate | 4.51% | 4.52%
Weighted- Average Remaining Term (in years) | 3 years 5 months 1 day | 3 years 9 months 29 days
No hedge designation | Treasury futures |  |
Notional Disclosures [Abstract] |  |
Notional Amount | $ 12,500 | $ 29,900
Asset |  |
Fair value, asset | 0 | 46
Netting adjustments | (2,311) | (462)
(Liability) |  |
Fair value, liability | (21) | 0
Netting adjustments | $ 2,311 | $ 462
Weighted- Average Forward Price (in dollars per share) | $ 111.96 | $ 108.91

X
- Definition Derivative, Weighted-Average Forward Price + References No definition available. + Details
Name: | agm_DerivativeWeightedAverageForwardPrice
Namespace Prefix: | agm_
Data Type: | dtr-types:perShareItemType
Balance Type: | na
Period Type: | duration

X
- Definition Fair value of liability associated with 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. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 7A -Publisher FASB -URI https://asc.fasb.org/1943274/2147480434/815-10-50-7A Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483466/210-20-50-3 Reference 3: 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 F)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147477271/946-320-S99-5C Reference 4: 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/2147477271/946-320-S99-5B + Details
Name: | us-gaap_DerivativeAssetFairValueGrossLiability
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Nominal or face amount used to calculate payments on the derivative asset. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 1B -Publisher FASB -URI https://asc.fasb.org/1943274/2147480434/815-10-50-1B Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 1A -Subparagraph (d) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480434/815-10-50-1A Reference 3: 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/2147477271/946-320-S99-5 Reference 4: 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 E)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147477271/946-320-S99-5C Reference 5: 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 D)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147477271/946-320-S99-5A Reference 6: 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 B)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147477271/946-320-S99-5B + Details
Name: | us-gaap_DerivativeAssetNotionalAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | na
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/2009/role/commonPracticeRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (bbb)(2)(i) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-2 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (bbb)(2) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-2 Reference 3: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (bbb)(1) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-2 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 7A -Publisher FASB -URI https://asc.fasb.org/1943274/2147480434/815-10-50-7A Reference 5: http://www.xbrl.org/2003/role/exampleRef -Name Accounting Standards Codification -Section 55 -Paragraph 10 -SubTopic 10 -Topic 825 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482881/825-10-55-10 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Topic 825 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 11 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482907/825-10-50-11 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Topic 825 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 11 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482907/825-10-50-11 Reference 8: 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 Reference 9: http://www.xbrl.org/2003/role/exampleRef -Topic 825 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 12 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482881/825-10-55-12 Reference 10: 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 11: http://www.xbrl.org/2003/role/exampleRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 21 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483444/210-20-55-21 Reference 12: http://www.xbrl.org/2003/role/exampleRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 20 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483444/210-20-55-20 Reference 13: http://www.xbrl.org/2003/role/exampleRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 15 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483444/210-20-55-15 Reference 14: 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 15: 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 16: http://www.xbrl.org/2003/role/exampleRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 103 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482078/820-10-55-103 Reference 17: http://www.xbrl.org/2003/role/exampleRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 100 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482078/820-10-55-100 Reference 18: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-2 Reference 19: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-2 Reference 20: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-3 Reference 21: 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/2147478795/946-210-50-12 Reference 22: 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/2147478795/946-210-50-6 Reference 23: 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/2147477439/946-210-55-1 Reference 24: 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/2147478795/946-210-50-6 Reference 25: 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/2147478795/946-210-50-6 Reference 26: 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/2147478795/946-210-50-6 Reference 27: 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/2147478795/946-210-50-1 Reference 28: 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/2147478795/946-210-50-1 Reference 29: 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/2147478795/946-210-50-1 Reference 30: 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/2147478795/946-210-50-1 Reference 31: 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/2147478795/946-210-50-6 Reference 32: 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/2147478795/946-210-50-6 Reference 33: 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/2147479170/946-210-S99-1 Reference 34: 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/2147477271/946-320-S99-5C Reference 35: 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/2147479170/946-210-S99-1 Reference 36: 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/2147477271/946-320-S99-5 Reference 37: 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/2147477271/946-320-S99-5C Reference 38: 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/2147477271/946-320-S99-5A Reference 39: 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/2147477271/946-320-S99-5B Reference 40: 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/2147477271/946-320-S99-5B + Details
Name: | us-gaap_DerivativeAssets
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

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

X
- Definition Average fixed interest rate related to the group of interest rate derivatives. + References No definition available. + Details
Name: | us-gaap_DerivativeAverageFixedInterestRate
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Average remaining period until maturity of the derivative contract, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. + References No definition available. + Details
Name: | us-gaap_DerivativeAverageRemainingMaturity1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Average variable interest rate related to the group of interest rate derivatives. + References No definition available. + Details
Name: | us-gaap_DerivativeAverageVariableInterestRate
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
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/2009/role/commonPracticeRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (bbb)(2)(i) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-2 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (bbb)(2) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-2 Reference 3: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (bbb)(1) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-2 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 7A -Publisher FASB -URI https://asc.fasb.org/1943274/2147480434/815-10-50-7A Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Topic 825 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 11 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482907/825-10-50-11 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Topic 825 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 11 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482907/825-10-50-11 Reference 7: 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 Reference 8: 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 9: http://www.xbrl.org/2003/role/exampleRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 21 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483444/210-20-55-21 Reference 10: http://www.xbrl.org/2003/role/exampleRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 20 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483444/210-20-55-20 Reference 11: http://www.xbrl.org/2003/role/exampleRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 15 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483444/210-20-55-15 Reference 12: 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 13: 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 14: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-2 Reference 15: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-2 Reference 16: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482106/820-10-50-3 Reference 17: 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/2147478795/946-210-50-6 Reference 18: 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/2147478795/946-210-50-6 Reference 19: 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/2147478795/946-210-50-6 Reference 20: 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/2147478795/946-210-50-6 Reference 21: 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/2147478795/946-210-50-1 Reference 22: 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/2147478795/946-210-50-1 Reference 23: 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/2147478795/946-210-50-1 Reference 24: 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/2147478795/946-210-50-1 Reference 25: 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/2147478795/946-210-50-6 Reference 26: 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/2147478795/946-210-50-6 Reference 27: 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/2147479170/946-210-S99-1 Reference 28: 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/2147477271/946-320-S99-5C Reference 29: 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/2147479170/946-210-S99-1 Reference 30: 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/2147479170/946-210-S99-1 Reference 31: 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/2147477271/946-320-S99-5 Reference 32: 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/2147477271/946-320-S99-5C Reference 33: 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/2147477271/946-320-S99-5 Reference 34: 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/2147477271/946-320-S99-5A Reference 35: 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/2147477271/946-320-S99-5B Reference 36: 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/2147477271/946-320-S99-5B + Details
Name: | us-gaap_DerivativeLiabilities
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

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

X
- Definition Fair value of asset associated with 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. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 7A -Publisher FASB -URI https://asc.fasb.org/1943274/2147480434/815-10-50-7A Reference 2: http://www.xbrl.org/2003/role/exampleRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 21 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483444/210-20-55-21 Reference 3: http://www.xbrl.org/2003/role/exampleRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 20 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483444/210-20-55-20 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483466/210-20-50-3 Reference 5: 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 F)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147477271/946-320-S99-5C Reference 6: 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/2147477271/946-320-S99-5B + Details
Name: | us-gaap_DerivativeLiabilityFairValueGrossAsset
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

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

X
- Details
Name: | us-gaap_HedgingDesignationAxis=us-gaap_DesignatedAsHedgingInstrumentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis=us-gaap_FairValueHedgingMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DerivativeInstrumentRiskAxis=agm_InterestRateSwapReceiveFixedNonCallableMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DerivativeInstrumentRiskAxis=agm_InterestRateSwapPayFixedNonCallableMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DerivativeInstrumentRiskAxis=agm_InterestRateSwapReceiveFixedCallableMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis=us-gaap_CashFlowHedgingMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_HedgingDesignationAxis=us-gaap_NondesignatedMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DerivativeInstrumentRiskAxis=us-gaap_BasisSwapMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DerivativeInstrumentRiskAxis=us-gaap_FutureMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |