XML 76 R62.htm IDEA: XBRL DOCUMENT
v3.8.0.1

Financial Derivatives - Schedule of Derivative Instruments in Statement of Financial Position (Details) - USD ($) $ / shares in Units, $ in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2017 | Dec. 31, 2016
Notional Disclosures [Abstract] |  |
Derivative, Notional Amount | $ 8,860,296 | $ 8,100,257
Derivative Asset, Fair Value, Amount Not Offset Against Collateral [Abstract] |  |
Financial derivatives, at fair value | 7,093 | 23,182
Financial derivatives, at fair value | (26,599) | (58,152)
Derivative Credit Risk Valuation Adjustment, Derivative Assets | 0 | 100
Derivative, Collateral [Abstract] |  |
Collateral Pledged | 24,926 | 25,643
Derivative Asset | 7,093 | 23,182
Derivative Liability | 1,673 | 32,509
Cash [Member] |  |
Derivative, Collateral [Abstract] |  |
Obligation to Return Securities Received as Collateral | 0 | 0
Collateral Pledged | 100 | 1,000
Designated as Hedging Instrument [Member] | Fair Value Hedging [Member] | Interest Rate Swap, Pay Fixed Non-Callable [Member] |  |
Notional Disclosures [Abstract] |  |
Derivative, Notional Amount | 2,086,347 | 1,642,609
Derivative Asset, Fair Value, Amount Not Offset Against Collateral [Abstract] |  |
Financial derivatives, at fair value | 5,240 | 18,508
Financial derivatives, at fair value | $ (5,990) | $ (18,909)
Derivative, Average Fixed Interest Rate | 1.88% | 1.73%
Derivative, Average Variable Interest Rate | 1.40% | 0.90%
Derivative, Average Remaining Maturity | 5 years 5 months 17 days | 4 years 8 months 13 days
Designated as Hedging Instrument [Member] | Fair Value Hedging [Member] | Interest Rate Swap, Receive Fixed Non-Callable [Member] |  |
Notional Disclosures [Abstract] |  |
Derivative, Notional Amount | $ 1,559,700 |
Derivative Asset, Fair Value, Amount Not Offset Against Collateral [Abstract] |  |
Financial derivatives, at fair value | 110 |
Financial derivatives, at fair value | $ (4,033) |
Derivative, Average Fixed Interest Rate | 1.38% |
Derivative, Average Variable Interest Rate | 1.45% |
Derivative, Average Remaining Maturity | 1 year 8 months 5 days |
Designated as Hedging Instrument [Member] | Cash Flow Hedging [Member] | Interest Rate Swap, Pay Fixed Non-Callable [Member] |  |
Notional Disclosures [Abstract] |  |
Derivative, Notional Amount | $ 365,500 | $ 207,000
Derivative Asset, Fair Value, Amount Not Offset Against Collateral [Abstract] |  |
Financial derivatives, at fair value | 1,402 | 3,706
Financial derivatives, at fair value | $ (138) | $ (955)
Derivative, Average Fixed Interest Rate | 2.16% | 2.18%
Derivative, Average Variable Interest Rate | 1.74% | 1.11%
Derivative, Average Remaining Maturity | 5 years 10 months 3 days | 7 years 3 months 10 days
Not Designated as Hedging Instrument [Member] |  |
Derivative Asset, Fair Value, Amount Not Offset Against Collateral [Abstract] |  |
Derivative Credit Risk Valuation Adjustment, Derivative Assets | $ 16 | $ 14
Derivative Credit Risk Valuation Adjustment, Derivative Liabilities | 56 | 158
Not Designated as Hedging Instrument [Member] | Interest Rate Swap, Pay Fixed Non-Callable [Member] |  |
Notional Disclosures [Abstract] |  |
Derivative, Notional Amount | 345,333 | 435,827
Derivative Asset, Fair Value, Amount Not Offset Against Collateral [Abstract] |  |
Financial derivatives, at fair value | 339 | 339
Financial derivatives, at fair value | $ (16,352) | $ (32,951)
Derivative, Average Fixed Interest Rate | 3.79% | 4.06%
Derivative, Average Variable Interest Rate | 1.40% | 0.89%
Derivative, Average Remaining Maturity | 6 years 8 months 5 days | 5 years 10 months 24 days
Not Designated as Hedging Instrument [Member] | Interest Rate Swap, Receive Fixed Non-Callable [Member] |  |
Notional Disclosures [Abstract] |  |
Derivative, Notional Amount | $ 3,409,916 | $ 4,991,821
Derivative Asset, Fair Value, Amount Not Offset Against Collateral [Abstract] |  |
Financial derivatives, at fair value | 0 | 607
Financial derivatives, at fair value | $ 0 | $ (5,064)
Derivative, Average Fixed Interest Rate | 1.24% | 0.75%
Derivative, Average Variable Interest Rate | 1.25% | 0.74%
Derivative, Average Remaining Maturity | 11 months | 7 months 5 days
Not Designated as Hedging Instrument [Member] | Interest Rate Swap, Receive Fixed Callable [Member] |  |
Notional Disclosures [Abstract] |  |
Derivative, Notional Amount |  | $ 30,000
Derivative Asset, Fair Value, Amount Not Offset Against Collateral [Abstract] |  |
Financial derivatives, at fair value |  | 0
Financial derivatives, at fair value |  | $ (33)
Derivative, Average Fixed Interest Rate |  | 0.58%
Derivative, Average Variable Interest Rate |  | 0.82%
Derivative, Average Remaining Maturity |  | 4 months
Not Designated as Hedging Instrument [Member] | Basis Swap [Member] |  |
Notional Disclosures [Abstract] |  |
Derivative, Notional Amount | $ 1,053,500 | $ 765,000
Derivative Asset, Fair Value, Amount Not Offset Against Collateral [Abstract] |  |
Financial derivatives, at fair value | 18 | 36
Financial derivatives, at fair value | $ (106) | $ (243)
Derivative, Average Variable Interest Rate | 1.33% | 0.78%
Derivative, Variable Interest Rate | 1.42% | 0.78%
Derivative, Average Remaining Maturity | 10 months 28 days | 10 months 15 days
Not Designated as Hedging Instrument [Member] | Future [Member] |  |
Notional Disclosures [Abstract] |  |
Derivative, Notional Amount | $ 40,000 | $ 28,000
Derivative Asset, Fair Value, Amount Not Offset Against Collateral [Abstract] |  |
Financial derivatives, at fair value | 0 | 0
Financial derivatives, at fair value | $ (36) | $ (155)
Derivative, Weighted-Average Forward Price | $ 123.96 | $ 123.73

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 Aggregate notional amount specified by the derivative(s). Expressed as an absolute value. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Article 12 -Section 13 -Sentence Column B + Details
Name: | invest_DerivativeNotionalAmount
Namespace Prefix: | invest_
Data Type: | xbrli:monetaryItemType
Balance Type: | na
Period Type: | instant

X
- Definition The aggregate fair value of assets that are already posted, at the end of the reporting period, as collateral for derivative instruments with credit-risk-related contingent features. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4H -Subparagraph (d) -URI http://asc.fasb.org/extlink&oid=84234895&loc=SL5624258-113959 + Details
Name: | us-gaap_CollateralAlreadyPostedAggregateFairValue
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

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

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/presentationRef -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/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 45 -Paragraph 6 -URI http://asc.fasb.org/extlink&oid=6945355&loc=d3e41271-113958 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 825 -SubTopic 10 -Section 50 -Paragraph 10 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=77997519&loc=d3e13433-108611 Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 45 -Paragraph 5 -URI http://asc.fasb.org/extlink&oid=6945355&loc=d3e41228-113958 Reference 5: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 825 -SubTopic 10 -Section 50 -Paragraph 15 -URI http://asc.fasb.org/extlink&oid=77997519&loc=d3e13495-108611 Reference 6: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 20 -Section 55 -Paragraph 10 -URI http://asc.fasb.org/extlink&oid=82849420&loc=SL20226008-175313 + Details
Name: | us-gaap_DerivativeAssets
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

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
- References No definition available. + Details
Name: | us-gaap_DerivativeCollateralAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

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://www.xbrl.org/2003/role/presentationRef -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 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4B -Subparagraph (a),(c) -URI http://asc.fasb.org/extlink&oid=84234895&loc=SL5624163-113959 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 20 -Section 55 -Paragraph 7 -URI http://asc.fasb.org/extlink&oid=82849420&loc=SL20226000-175313 Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 860 -SubTopic 20 -Section 50 -Paragraph 4D -Subparagraph (c)(2) -URI http://asc.fasb.org/extlink&oid=82924980&loc=SL51823488-111719 + 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://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 860 -SubTopic 20 -Section 50 -Paragraph 4D -Subparagraph (c)(2) -URI http://asc.fasb.org/extlink&oid=82924980&loc=SL51823488-111719 Reference 2: http://www.xbrl.org/2003/role/presentationRef -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 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4B -Subparagraph (a),(c) -URI http://asc.fasb.org/extlink&oid=84234895&loc=SL5624163-113959 Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 20 -Section 55 -Paragraph 7 -URI http://asc.fasb.org/extlink&oid=82849420&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://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 20 -Section 55 -Paragraph 10 -URI http://asc.fasb.org/extlink&oid=82849420&loc=SL20226008-175313 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 825 -SubTopic 10 -Section 50 -Paragraph 15 -URI http://asc.fasb.org/extlink&oid=77997519&loc=d3e13495-108611 Reference 3: http://www.xbrl.org/2003/role/presentationRef -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 4: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 825 -SubTopic 10 -Section 50 -Paragraph 10 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=77997519&loc=d3e13433-108611 Reference 5: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 45 -Paragraph 6 -URI http://asc.fasb.org/extlink&oid=6945355&loc=d3e41271-113958 Reference 6: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 45 -Paragraph 5 -URI http://asc.fasb.org/extlink&oid=6945355&loc=d3e41228-113958 + Details
Name: | us-gaap_DerivativeLiabilities
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Variable interest rate in effect as of the balance sheet date related to the interest rate derivative. + References No definition available. + Details
Name: | us-gaap_DerivativeVariableInterestRate
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
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
- Definition The fair value of collateral received by the entity associated with securities borrowed that must be returned if the counterparty fulfills its obligations. It appears on the balance sheet as a liability and has a corresponding asset that appears on the balance sheet called Securities Received as Collateral. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03.15) -URI http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910 + Details
Name: | us-gaap_ObligationToReturnSecuritiesReceivedAsCollateral
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | us-gaap_FinancialInstrumentsOwnedAndPledgedAsCollateralAxis=us-gaap_CashMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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_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=agm_InterestRateSwapReceiveFixedCallableMember
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: |