XML 104 R90.htm IDEA: XBRL DOCUMENT
v3.7.0.1

Income Taxes - Deferred Taxes and Liabilities (Details) - USD ($) $ in Thousands | Dec. 31, 2016 | Dec. 31, 2015
--- | --- | ---
Valuation Allowance [Line Items] |  |
Basis differences related to financial derivatives | $ 15,917 | $ 28,395
Basis differences related to hedged items | 9,307 | 2,866
Unrealized losses on available-for-sale securities | 0 | 5,660
Allowance for losses | 2,602 | 2,297
Stock-based compensation | 1,648 | 2,833
Capital loss carryforwards and other than temporary impairment | 56 | 2,099
Other | 1,247 | 1,444
Total deferred tax assets | 30,721 | 43,495
Unrealized gains on available-for-sale securities | 16,889 | 0
Basis difference in subsidiary | 23 | 300
Other | 1,518 | 279
Total deferred tax liability | 18,430 | 579
Deferred tax asset, net | 12,291 | 42,916
Capital Loss Carryforward [Member] |  |
Valuation Allowance [Line Items] |  |
Valuation allowance | $ (56) | $ (2,099)

X
- Definition Deferred Tax Asset - basis in securities + References No definition available. + Details
Name: | agm_DeferredTaxAssetbasisinsecurities
Namespace Prefix: | agm_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of deferred tax liability attributable to taxable temporary differences. + 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)(b)(2)) -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 -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(15)(2)) -URI http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Glossary Deferred Tax Liability -URI http://asc.fasb.org/extlink&oid=6510232 Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(26)(a)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 5: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(26)(b)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 6: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=65882285&loc=d3e32537-109319 + Details
Name: | us-gaap_DeferredIncomeTaxLiabilities
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible capital loss carryforwards. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 6 -URI http://asc.fasb.org/extlink&oid=65882285&loc=d3e32621-109319 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 25 -Paragraph 20 -URI http://asc.fasb.org/extlink&oid=68052875&loc=d3e28680-109314 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 8 -URI http://asc.fasb.org/extlink&oid=65882285&loc=d3e32632-109319 + Details
Name: | us-gaap_DeferredTaxAssetsCapitalLossCarryforwards
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from derivative instruments. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 25 -Paragraph 20 -URI http://asc.fasb.org/extlink&oid=68052875&loc=d3e28680-109314 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 6 -URI http://asc.fasb.org/extlink&oid=65882285&loc=d3e32621-109319 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 8 -URI http://asc.fasb.org/extlink&oid=65882285&loc=d3e32632-109319 + Details
Name: | us-gaap_DeferredTaxAssetsDerivativeInstruments
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences and carryforwards. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=65882285&loc=d3e32537-109319 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Glossary Deferred Tax Asset -URI http://asc.fasb.org/extlink&oid=6510090 + Details
Name: | us-gaap_DeferredTaxAssetsGross
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount, after allocation of valuation allowances and deferred tax liability, of deferred tax asset attributable to deductible differences and carryforwards, without jurisdictional netting. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=65882285&loc=d3e32537-109319 + Details
Name: | us-gaap_DeferredTaxAssetsLiabilitiesNet
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount, before allocation of valuation allowance, of deferred tax asset attributable to deductible temporary differences, classified as other. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 6 -URI http://asc.fasb.org/extlink&oid=65882285&loc=d3e32621-109319 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 8 -URI http://asc.fasb.org/extlink&oid=65882285&loc=d3e32632-109319 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 25 -Paragraph 20 -URI http://asc.fasb.org/extlink&oid=68052875&loc=d3e28680-109314 + Details
Name: | us-gaap_DeferredTaxAssetsOther
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from share-based compensation. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 8 -URI http://asc.fasb.org/extlink&oid=65882285&loc=d3e32632-109319 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 25 -Paragraph 20 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=68052875&loc=d3e28680-109314 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 6 -URI http://asc.fasb.org/extlink&oid=65882285&loc=d3e32621-109319 + Details
Name: | us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from the provision for loan losses. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 25 -Paragraph 20 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=68052875&loc=d3e28680-109314 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 8 -URI http://asc.fasb.org/extlink&oid=65882285&loc=d3e32632-109319 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 6 -URI http://asc.fasb.org/extlink&oid=65882285&loc=d3e32621-109319 + Details
Name: | us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsProvisionForLoanLosses
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from unrealized losses on available-for-sale securities. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 6 -URI http://asc.fasb.org/extlink&oid=65882285&loc=d3e32621-109319 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 25 -Paragraph 20 -URI http://asc.fasb.org/extlink&oid=68052875&loc=d3e28680-109314 + Details
Name: | us-gaap_DeferredTaxAssetsUnrealizedLossesOnAvailableforSaleSecuritiesGross
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of deferred tax assets for which it is more likely than not that a tax benefit will not be realized. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=65882285&loc=d3e32537-109319 + Details
Name: | us-gaap_DeferredTaxAssetsValuationAllowance
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of deferred tax liability attributable to taxable temporary differences from interests in financial instruments continued to be held after sale or transfer of related financial instruments. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 8 -URI http://asc.fasb.org/extlink&oid=65882285&loc=d3e32632-109319 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 6 -URI http://asc.fasb.org/extlink&oid=65882285&loc=d3e32621-109319 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 25 -Paragraph 20 -URI http://asc.fasb.org/extlink&oid=68052875&loc=d3e28680-109314 + Details
Name: | us-gaap_DeferredTaxLiabilitiesInterestsInFinancialAssetsContinuedToBeHeld
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of deferred tax liability attributable to taxable temporary differences classified as other. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 8 -URI http://asc.fasb.org/extlink&oid=65882285&loc=d3e32632-109319 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 25 -Paragraph 20 -URI http://asc.fasb.org/extlink&oid=68052875&loc=d3e28680-109314 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 6 -URI http://asc.fasb.org/extlink&oid=65882285&loc=d3e32621-109319 + Details
Name: | us-gaap_DeferredTaxLiabilitiesOther
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of deferred tax liability attributable to taxable temporary differences from unrealized gains in other comprehensive income. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 6 -URI http://asc.fasb.org/extlink&oid=65882285&loc=d3e32621-109319 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 20 -Section 45 -Paragraph 11 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=65896914&loc=d3e39076-109324 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 8 -URI http://asc.fasb.org/extlink&oid=65882285&loc=d3e32632-109319 Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 25 -Paragraph 20 -URI http://asc.fasb.org/extlink&oid=68052875&loc=d3e28680-109314 + Details
Name: | us-gaap_DeferredTaxLiabilitiesOtherComprehensiveIncome
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References No definition available. + Details
Name: | us-gaap_ValuationAllowanceLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_ValuationAllowanceByDeferredTaxAssetAxis=us-gaap_CapitalLossCarryforwardMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |