XML 66 R53.htm IDEA: XBRL DOCUMENT
v3.20.4

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, 2020 | Dec. 31, 2020 | Dec. 31, 2019
Notional Disclosures [Abstract] |  |  |
Notional Amount |  | $ 15,447,553 | $ 14,022,179
Asset |  |  |
Asset |  | 17,468 | 10,519
Collateral (held)/pledged |  | (1,345) | (2,685)
Net amount |  | 16,123 | 7,834
(Liability) |  |  |
(Liability) |  | (29,892) | (27,042)
Collateral (held)/pledged |  | 212,263 |
Financial derivatives |  | 182,371 | 105,087
Designated as hedge | Fair value hedges: | Pay fixed non-callable |  |  |
Notional Disclosures [Abstract] |  |  |
Notional Amount |  | 5,463,303 | 4,955,686
Asset |  |  |
Asset |  | 10,157 | 7,163
(Liability) |  |  |
(Liability) |  | $ (2,585) | $ (3,281)
Weighted- Average Pay Rate |  | 2.26% | 2.47%
Weighted- Average Receive Rate |  | 0.21% | 1.93%
Weighted- Average Remaining Term (in years) | 11 years 3 months 3 days | 11 years 11 months 12 days |
Designated as hedge | Fair value hedges: | Receive fixed non-callable |  |  |
Notional Disclosures [Abstract] |  |  |
Notional Amount |  | $ 2,611,029 | $ 1,413,200
Asset |  |  |
Asset |  | 2 | 76
(Liability) |  |  |
(Liability) |  | $ (8,755) | $ (5,329)
Weighted- Average Pay Rate |  | 0.32% | 1.88%
Weighted- Average Receive Rate |  | 1.61% | 2.13%
Weighted- Average Remaining Term (in years) | 1 year 3 months | 2 years 1 month 6 days |
Designated as hedge | Fair value hedges: | Receive fixed callable |  |  |
Notional Disclosures [Abstract] |  |  |
Notional Amount |  | $ 343,500 | $ 524,000
Asset |  |  |
Asset |  | 3,108 | 476
(Liability) |  |  |
(Liability) |  | $ (4) | $ (772)
Weighted- Average Pay Rate |  | 0.16% | 1.52%
Weighted- Average Receive Rate |  | 1.78% | 1.91%
Weighted- Average Remaining Term (in years) | 2 years 9 months 29 days | 3 years 1 month 28 days |
Designated as hedge | Cash flow hedges: | Pay fixed non-callable |  |  |
Notional Disclosures [Abstract] |  |  |
Notional Amount |  | $ 472,000 | $ 428,000
Asset |  |  |
Asset |  | 2,584 | 1,882
(Liability) |  |  |
(Liability) |  | $ (8,771) | $ (1,514)
Weighted- Average Pay Rate |  | 2.04% | 2.36%
Weighted- Average Receive Rate |  | 0.57% | 2.12%
Weighted- Average Remaining Term (in years) | 5 years 5 months 4 days | 6 years 14 days |
No hedge designation |  |  |
Asset |  |  |
Credit valuation adjustment |  | $ (1) | $ 0
(Liability) |  |  |
Credit valuation adjustment |  | 35 | 63
No hedge designation | Pay fixed non-callable |  |  |
Notional Disclosures [Abstract] |  |  |
Notional Amount |  | 339,090 | 342,745
Asset |  |  |
Asset |  | 0 | 7
(Liability) |  |  |
(Liability) |  | $ (9,675) | $ (14,046)
Weighted- Average Pay Rate |  | 2.38% | 3.55%
Weighted- Average Receive Rate |  | 0.19% | 2.00%
Weighted- Average Remaining Term (in years) | 5 years 6 months 3 days | 4 years 2 months 23 days |
No hedge designation | Receive fixed non-callable |  |  |
Notional Disclosures [Abstract] |  |  |
Notional Amount |  | $ 2,359,220 | $ 3,124,148
Asset |  |  |
Asset |  | 0 | 49
(Liability) |  |  |
(Liability) |  | $ 0 | $ (1,637)
Weighted- Average Pay Rate |  | 0.16% | 1.88%
Weighted- Average Receive Rate |  | 0.87% | 2.06%
Weighted- Average Remaining Term (in years) | 1 year 7 months 28 days | 1 year 25 days |
No hedge designation | Receive fixed callable |  |  |
Notional Disclosures [Abstract] |  |  |
Notional Amount |  | $ 200,000 | $ 525,000
Asset |  |  |
Asset |  | 1 | 79
(Liability) |  |  |
(Liability) |  | $ (12) | $ (80)
Weighted- Average Pay Rate |  | 0.13% | 1.64%
Weighted- Average Receive Rate |  | 0.15% | 1.68%
Weighted- Average Remaining Term (in years) | 9 months 29 days | 8 months 19 days |
No hedge designation | Basis swaps |  |  |
Notional Disclosures [Abstract] |  |  |
Notional Amount |  | $ 3,628,911 | $ 2,670,000
Asset |  |  |
Asset |  | 1,617 | 787
(Liability) |  |  |
(Liability) |  | $ (43) | $ (395)
Weighted- Average Pay Rate |  | 0.18% | 1.86%
Weighted- Average Receive Rate |  | 0.23% | 1.76%
Weighted- Average Remaining Term (in years) | 10 months 24 days | 2 years 10 days |
No hedge designation | Treasury futures |  |  |
Notional Disclosures [Abstract] |  |  |
Notional Amount |  | $ 30,500 | $ 39,400
Asset |  |  |
Asset |  | 0 | 0
(Liability) |  |  |
(Liability) |  | $ (82) | $ (51)
Weighted- Average Forward Price (in dollars per share) | $ 128.29 | $ 137.81 |

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

X
- Definition Fair value of securities received as collateral against derivative assets. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 20 -Section 55 -Paragraph 12 -URI http://asc.fasb.org/extlink&oid=99393222&loc=SL20226013-175313 + Details
Name: | us-gaap_DerivativeAssetFairValueOfCollateral
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 -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 1A -Subparagraph (d) -URI http://asc.fasb.org/extlink&oid=121590274&loc=SL5579245-113959 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 1B -URI http://asc.fasb.org/extlink&oid=121590274&loc=SL5580258-113959 Reference 3: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 1A -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=121590274&loc=SL5579245-113959 + 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://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 20 -Section 55 -Paragraph 10 -URI http://asc.fasb.org/extlink&oid=99393222&loc=SL20226008-175313 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 825 -SubTopic 10 -Section 50 -Paragraph 10 -URI http://asc.fasb.org/extlink&oid=121572278&loc=d3e13433-108611 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 20 -Section 50 -Paragraph 3 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=51824906&loc=SL20225862-175312 + 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: | num: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: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Amount of credit risk valuation adjustment to derivative assets to properly reflect the credit quality of the counterparties. + References No definition available. + Details
Name: | us-gaap_DerivativeCreditRiskValuationAdjustmentDerivativeAssets
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of credit risk valuation adjustment to derivative liabilities to properly reflect the credit quality of the entity. + References No definition available. + Details
Name: | us-gaap_DerivativeCreditRiskValuationAdjustmentDerivativeLiabilities
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Fair value, before 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 elected not to be offset. Excludes assets not subject to a master netting arrangement. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 20 -Section 55 -Paragraph 7 -URI http://asc.fasb.org/extlink&oid=99393222&loc=SL20226000-175313 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 860 -SubTopic 20 -Section 50 -Paragraph 4D -Subparagraph (c)(2) -URI http://asc.fasb.org/extlink&oid=121570589&loc=SL51823488-111719 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 20 -Section 50 -Paragraph 3 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=51824906&loc=SL20225862-175312 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4B -Subparagraph (a),(c) -URI http://asc.fasb.org/extlink&oid=121590274&loc=SL5624163-113959 + Details
Name: | us-gaap_DerivativeFairValueOfDerivativeAsset
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Fair value, before 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 elected not to be offset. Excludes liabilities not subject to a master netting arrangement. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 860 -SubTopic 20 -Section 50 -Paragraph 4D -Subparagraph (c)(2) -URI http://asc.fasb.org/extlink&oid=121570589&loc=SL51823488-111719 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4B -Subparagraph (a),(c) -URI http://asc.fasb.org/extlink&oid=121590274&loc=SL5624163-113959 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 20 -Section 50 -Paragraph 3 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=51824906&loc=SL20225862-175312 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 20 -Section 55 -Paragraph 7 -URI http://asc.fasb.org/extlink&oid=99393222&loc=SL20226000-175313 + Details
Name: | us-gaap_DerivativeFairValueOfDerivativeLiability
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
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://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 20 -Section 50 -Paragraph 3 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=51824906&loc=SL20225862-175312 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 825 -SubTopic 10 -Section 50 -Paragraph 10 -URI http://asc.fasb.org/extlink&oid=121572278&loc=d3e13433-108611 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 20 -Section 55 -Paragraph 10 -URI http://asc.fasb.org/extlink&oid=99393222&loc=SL20226008-175313 + 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 securities pledged as collateral against derivative liabilities. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 20 -Section 55 -Paragraph 12 -URI http://asc.fasb.org/extlink&oid=99393222&loc=SL20226013-175313 + Details
Name: | us-gaap_DerivativeLiabilityFairValueOfCollateral
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_InterestRateSwapPayFixedNonCallableMember
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_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: |