XML 57 R43.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 | 3 Months Ended |
--- | --- | ---
Mar. 31, 2017 | Mar. 31, 2016 | Dec. 31, 2016
Notional Disclosures [Abstract] |  |  |
Derivative, Notional Amount | $ 8,493,388 |  | $ 8,100,257
Derivative Asset, Fair Value, Amount Not Offset Against Collateral [Abstract] |  |  |
Financial derivatives, at fair value | 2,674 |  | 23,182
Financial derivatives, at fair value | (32,054) |  | (58,152)
Derivative, Collateral [Abstract] |  |  |
Collateral Pledged | 25,075 |  | 25,643
Derivative Asset | 2,674 |  | 23,182
Derivative Liability | 6,979 |  | 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 | 1,808,581 |  | 1,642,609
Derivative Asset, Fair Value, Amount Not Offset Against Collateral [Abstract] |  |  |
Financial derivatives, at fair value | 1,292 |  | 18,508
Financial derivatives, at fair value | $ (9,133) |  | $ (18,909)
Derivative, Average Fixed Interest Rate | 1.77% |  | 1.73%
Derivative, Average Variable Interest Rate | 1.04% |  | 0.90%
Derivative, Average Remaining Maturity | 4 years 9 months | 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 | $ 860,200 |  |
Derivative Asset, Fair Value, Amount Not Offset Against Collateral [Abstract] |  |  |
Financial derivatives, at fair value | 11 |  |
Financial derivatives, at fair value | $ (1,815) |  |
Derivative, Average Fixed Interest Rate | 0.98% |  |
Derivative, Average Variable Interest Rate | 1.39% |  |
Derivative, Average Remaining Maturity | 3 years 3 months 7 days |  |
Designated as Hedging Instrument [Member] | Cash Flow Hedging [Member] | Interest Rate Swap, Pay Fixed Non-Callable [Member] |  |  |
Notional Disclosures [Abstract] |  |  |
Derivative, Notional Amount | $ 221,000 |  | $ 207,000
Derivative Asset, Fair Value, Amount Not Offset Against Collateral [Abstract] |  |  |
Financial derivatives, at fair value | 843 |  | 3,706
Financial derivatives, at fair value | $ (290) |  | $ (955)
Derivative, Average Fixed Interest Rate | 2.28% |  | 2.18%
Derivative, Average Variable Interest Rate | 1.34% |  | 1.11%
Derivative, Average Remaining Maturity | 7 years 1 month 18 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 | $ 0 |  | $ 14
Derivative Credit Risk Valuation Adjustment, Derivative Liabilities | 121 |  | 158
Not Designated as Hedging Instrument [Member] | Interest Rate Swap, Pay Fixed Non-Callable [Member] |  |  |
Notional Disclosures [Abstract] |  |  |
Derivative, Notional Amount | 433,406 |  | 435,827
Derivative Asset, Fair Value, Amount Not Offset Against Collateral [Abstract] |  |  |
Financial derivatives, at fair value | 400 |  | 339
Financial derivatives, at fair value | $ (20,912) |  | $ (32,951)
Derivative, Average Fixed Interest Rate | 4.06% |  | 4.06%
Derivative, Average Variable Interest Rate | 1.04% |  | 0.89%
Derivative, Average Remaining Maturity | 5 years 8 months 10 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 | $ 4,262,401 |  | $ 4,991,821
Derivative Asset, Fair Value, Amount Not Offset Against Collateral [Abstract] |  |  |
Financial derivatives, at fair value | 69 |  | 607
Financial derivatives, at fair value | $ 0 |  | $ (5,064)
Derivative, Average Fixed Interest Rate | 0.87% |  | 0.75%
Derivative, Average Variable Interest Rate | 0.82% |  | 0.74%
Derivative, Average Remaining Maturity | 9 months 15 days | 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 |  | $ 30,000
Derivative Asset, Fair Value, Amount Not Offset Against Collateral [Abstract] |  |  |
Financial derivatives, at fair value | 0 |  | 0
Financial derivatives, at fair value | $ (10) |  | $ (33)
Derivative, Average Fixed Interest Rate | 0.58% |  | 0.58%
Derivative, Average Variable Interest Rate | 0.97% |  | 0.82%
Derivative, Average Remaining Maturity | 30 days | 4 months |
Not Designated as Hedging Instrument [Member] | Basis Swap [Member] |  |  |
Notional Disclosures [Abstract] |  |  |
Derivative, Notional Amount | $ 865,000 |  | $ 765,000
Derivative Asset, Fair Value, Amount Not Offset Against Collateral [Abstract] |  |  |
Financial derivatives, at fair value | 51 |  | 36
Financial derivatives, at fair value | $ (15) |  | $ (243)
Derivative, Average Variable Interest Rate | 0.93% |  | 0.78%
Derivative, Variable Interest Rate | 0.99% |  | 0.78%
Derivative, Average Remaining Maturity | 11 months 5 days | 10 months 15 days |
Not Designated as Hedging Instrument [Member] | Future [Member] |  |  |
Notional Disclosures [Abstract] |  |  |
Derivative, Notional Amount | $ 12,800 |  | $ 28,000
Derivative Asset, Fair Value, Amount Not Offset Against Collateral [Abstract] |  |  |
Financial derivatives, at fair value | 8 |  | 0
Financial derivatives, at fair value | $ 0 |  | $ (155)
Derivative, Weighted-Average Forward Price | $ 124.62 | $ 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=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_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: |