XML 76 R62.htm IDEA: XBRL DOCUMENT
v3.7.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, 2016 | Dec. 31, 2015
Notional Disclosures [Abstract] |  |
Derivative, Notional Amount | $ 8,100,257 | $ 8,429,964
Derivative Asset, Fair Value, Amount Not Offset Against Collateral [Abstract] |  |
Financial derivatives, at fair value | 23,182 | 3,816
Financial derivatives, at fair value | (58,152) | (77,199)
Derivative Credit Risk Valuation Adjustment, Derivative Assets | 100 | 200
Derivative, Collateral [Abstract] |  |
Collateral Pledged | 25,643 | 37,986
Derivative Asset | 23,182 | 3,816
Derivative Liability | 32,509 | 39,213
Cash [Member] |  |
Derivative, Collateral [Abstract] |  |
Obligation to Return Securities Received as Collateral | 0 | 0
Collateral Pledged | 1,000 | 38,000
Designated as Hedging Instrument [Member] | Fair Value Hedging [Member] | Interest Rate Swap, Pay Fixed Non-Callable [Member] |  |
Notional Disclosures [Abstract] |  |
Derivative, Notional Amount | 1,642,609 | 1,276,285
Derivative Asset, Fair Value, Amount Not Offset Against Collateral [Abstract] |  |
Financial derivatives, at fair value | 18,508 | 949
Financial derivatives, at fair value | $ (18,909) | $ (26,703)
Derivative, Average Fixed Interest Rate | 1.73% | 2.35%
Derivative, Average Variable Interest Rate | 0.90% | 0.37%
Derivative, Average Remaining Maturity | 4 years 8 months 13 days | 4 years 1 month 28 days
Designated as Hedging Instrument [Member] | Cash Flow Hedging [Member] | Interest Rate Swap, Pay Fixed Non-Callable [Member] |  |
Notional Disclosures [Abstract] |  |
Derivative, Notional Amount | $ 207,000 | $ 119,000
Derivative Asset, Fair Value, Amount Not Offset Against Collateral [Abstract] |  |
Financial derivatives, at fair value | 3,706 | 8
Financial derivatives, at fair value | $ (955) | $ (1,381)
Derivative, Average Fixed Interest Rate | 2.18% | 2.25%
Derivative, Average Variable Interest Rate | 1.11% | 0.64%
Derivative, Average Remaining Maturity | 7 years 3 months 10 days | 7 years 11 days
Not Designated as Hedging Instrument [Member] |  |
Derivative Asset, Fair Value, Amount Not Offset Against Collateral [Abstract] |  |
Derivative Credit Risk Valuation Adjustment, Derivative Assets | $ 14 | $ 5
Derivative Credit Risk Valuation Adjustment, Derivative Liabilities | 158 | 170
Not Designated as Hedging Instrument [Member] | Interest Rate Swap, Pay Fixed Non-Callable [Member] |  |
Notional Disclosures [Abstract] |  |
Derivative, Notional Amount | 435,827 | 454,041
Derivative Asset, Fair Value, Amount Not Offset Against Collateral [Abstract] |  |
Financial derivatives, at fair value | 339 | 229
Financial derivatives, at fair value | $ (32,951) | $ (44,528)
Derivative, Average Fixed Interest Rate | 4.06% | 3.73%
Derivative, Average Variable Interest Rate | 0.89% | 0.33%
Derivative, Average Remaining Maturity | 5 years 10 months 24 days | 6 years 7 days
Not Designated as Hedging Instrument [Member] | Interest Rate Swap, Receive Fixed Non-Callable [Member] |  |
Notional Disclosures [Abstract] |  |
Derivative, Notional Amount | $ 4,991,821 | $ 5,590,638
Derivative Asset, Fair Value, Amount Not Offset Against Collateral [Abstract] |  |
Financial derivatives, at fair value | 607 | 2,384
Financial derivatives, at fair value | $ (5,064) | $ (4,205)
Derivative, Average Fixed Interest Rate | 0.75% | 0.47%
Derivative, Average Variable Interest Rate | 0.74% | 0.31%
Derivative, Average Remaining Maturity | 7 months 5 days | 6 months 25 days
Not Designated as Hedging Instrument [Member] | Interest Rate Swap, Receive Fixed Callable [Member] |  |
Notional Disclosures [Abstract] |  |
Derivative, Notional Amount | $ 30,000 | $ 230,000
Derivative Asset, Fair Value, Amount Not Offset Against Collateral [Abstract] |  |
Financial derivatives, at fair value | 0 | 0
Financial derivatives, at fair value | $ (33) | $ (421)
Derivative, Average Fixed Interest Rate | 0.58% | 0.91%
Derivative, Average Variable Interest Rate | 0.82% | 0.41%
Derivative, Average Remaining Maturity | 4 months | 2 years 3 months 4 days
Not Designated as Hedging Instrument [Member] | Basis Swap [Member] |  |
Notional Disclosures [Abstract] |  |
Derivative, Notional Amount | $ 765,000 | $ 725,000
Derivative Asset, Fair Value, Amount Not Offset Against Collateral [Abstract] |  |
Financial derivatives, at fair value | 36 | 232
Financial derivatives, at fair value | $ (243) | $ (131)
Derivative, Average Variable Interest Rate | 0.78% | 0.22%
Derivative, Variable Interest Rate | 0.78% | 0.38%
Derivative, Average Remaining Maturity | 10 months 15 days | 2 years 3 months 29 days
Not Designated as Hedging Instrument [Member] | Future [Member] |  |
Notional Disclosures [Abstract] |  |
Derivative, Notional Amount | $ 28,000 | $ 35,000
Derivative Asset, Fair Value, Amount Not Offset Against Collateral [Abstract] |  |
Financial derivatives, at fair value | 0 | 19
Financial derivatives, at fair value | $ (155) | $ 0
Derivative, Weighted-Average Forward Price | $ 123.73 | $ 125.96

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=64837297&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=73719730&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=73719730&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=51825145&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=64837297&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=51825145&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=64830801&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=64830801&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=64837297&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=51825145&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=51825145&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=73719730&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=73719730&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 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Glossary Collateral -URI http://asc.fasb.org/extlink&oid=6507830 + 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_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_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_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: |