XML 71 R49.htm IDEA: XBRL DOCUMENT
v3.24.3

FINANCIAL DERIVATIVES - Schedule of Fair Value of Financial Assets and Liabilities (Details) - USD ($) $ in Thousands | Sep. 30, 2024 | Dec. 31, 2023
--- | --- | ---
Assets: |  |
Gross Amount Recognized | $ 50,156 | $ 36,139
Gross Amounts offset in the Consolidated Balance Sheet | (8,595) | (1,236)
Net amount presented in the consolidated balance sheet | 41,561 | 34,903
Netting Adjustments | (23,737) | (25,727)
Financial instruments pledged | 0 | 0
Cash collateral | (3,521) | 0
Net amount | 14,303 | 9,176
Liabilities: |  |
Gross Amount Recognized | (63,641) | (101,350)
Gross Amounts offset in the Consolidated Balance Sheet | 8,595 | 1,236
Net amount presented in the consolidated balance sheet | (55,046) | (100,114)
Netting Adjustments | 23,737 | 25,727
Financial instruments pledged | 0 | 0
Cash collateral | 22,154 | 69,360
Net amount | (9,155) | (5,027)
Derivative liability, not subject to master netting arrangement | 5,600 | 15,200
Collateral received | 10,200 | 2,000
Derivative, additional net exposure to counterparty | 217,400 | 207,200
Derivative, additional net exposure from counterparty | 1,900 |
Uncleared derivatives |  |
Assets: |  |
Gross Amount Recognized | 27,397 | 25,751
Gross Amounts offset in the Consolidated Balance Sheet | 0 | 0
Net amount presented in the consolidated balance sheet | 27,397 | 25,751
Netting Adjustments | (23,737) | (25,727)
Financial instruments pledged | 0 | 0
Cash collateral | (3,521) | 0
Net amount | 139 | 24
Liabilities: |  |
Gross Amount Recognized | (55,046) | (100,114)
Gross Amounts offset in the Consolidated Balance Sheet | 0 | 0
Net amount presented in the consolidated balance sheet | (55,046) | (100,114)
Netting Adjustments | 23,737 | 25,727
Financial instruments pledged | 0 | 0
Cash collateral | 22,154 | 69,360
Net amount | (9,155) | (5,027)
Cleared derivatives |  |
Assets: |  |
Gross Amount Recognized | 22,759 | 10,388
Gross Amounts offset in the Consolidated Balance Sheet | (8,595) | (1,236)
Net amount presented in the consolidated balance sheet | 14,164 | 9,152
Netting Adjustments | 0 | 0
Financial instruments pledged | 0 | 0
Cash collateral | 0 | 0
Net amount | 14,164 | 9,152
Liabilities: |  |
Gross Amount Recognized | (8,595) | (1,236)
Gross Amounts offset in the Consolidated Balance Sheet | 8,595 | 1,236
Net amount presented in the consolidated balance sheet | 0 | 0
Netting Adjustments | 0 | 0
Financial instruments pledged | 0 | 0
Cash collateral | 0 | 0
Net amount | $ 0 | $ 0

X
- Definition Derivative Asset, Subject To Master Netting Arrangement, Collateral, Obligation To Return Security Not Offset, Net + References No definition available. + Details
Name: | agm_DerivativeAssetSubjectToMasterNettingArrangementCollateralObligationToReturnSecurityNotOffsetNet
Namespace Prefix: | agm_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Derivative, Collateral Exceeding Derivative Position, Additional Net Exposure From Counterparty + References No definition available. + Details
Name: | agm_DerivativeCollateralExceedingDerivativePositionAdditionalNetExposureFromCounterparty
Namespace Prefix: | agm_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Derivative, Collateral Exceeding Derivative Position, Additional Net Exposure To Counterparty + References No definition available. + Details
Name: | agm_DerivativeCollateralExceedingDerivativePositionAdditionalNetExposureToCounterparty
Namespace Prefix: | agm_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Derivative Liability, Including Not Subject To Master Netting Arrangement, After Offset And Deduction, Net Amount + References No definition available. + Details
Name: | agm_DerivativeLiabilityIncludingNotSubjectToMasterNettingArrangementAfterOffsetAndDeductionNetAmount
Namespace Prefix: | agm_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of obligation to return cash collateral under master netting arrangements offset against derivative assets. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 45 -Paragraph 5 -SubTopic 10 -Topic 815 -Publisher FASB -URI https://asc.fasb.org/1943274/2147480463/815-10-45-5 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (b) -SubTopic 20 -Topic 210 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483466/210-20-50-3 + Details
Name: | us-gaap_DerivativeAssetCollateralObligationToReturnCashOffset
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
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 not subject to a master netting arrangement and elected not to be offset. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5C -Subparagraph (SX 210.12-13C(Column F)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147477271/946-320-S99-5C Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5B -Subparagraph (SX 210.12-13B(Column E)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147477271/946-320-S99-5B Reference 3: http://www.xbrl.org/2003/role/exampleRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 22 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483444/210-20-55-22 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483466/210-20-50-3 + Details
Name: | us-gaap_DerivativeAssetFairValueGrossAssetIncludingNotSubjectToMasterNettingArrangement
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Fair value of liability associated with 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. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (b) -SubTopic 20 -Topic 210 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483466/210-20-50-3 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 55 -Paragraph 8 -SubTopic 20 -Topic 210 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483444/210-20-55-8 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 4B -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480434/815-10-50-4B Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 4B -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480434/815-10-50-4B Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5C -Subparagraph (SX 210.12-13C(Column F)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147477271/946-320-S99-5C Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5B -Subparagraph (SX 210.12-13B(Column E)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147477271/946-320-S99-5B + Details
Name: | us-gaap_DerivativeAssetFairValueGrossLiability
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Fair value of financial asset or other contract with one or more underlyings, notional amount or payment provision or both, and contract can be net settled by means outside contract or delivery of asset, subject to master netting arrangement or similar agreement and not elected or qualified to offset, deducted from derivative asset. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 55 -Paragraph 13 -SubTopic 20 -Topic 210 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483444/210-20-55-13 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (d)(1)(i) -SubTopic 20 -Topic 210 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483466/210-20-50-3 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (d)(1)(ii) -SubTopic 20 -Topic 210 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483466/210-20-50-3 + Details
Name: | us-gaap_DerivativeAssetNotOffsetPolicyElectionDeduction
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of obligation to return cash collateral under master netting arrangements that have not been offset against derivative assets. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 55 -Paragraph 13 -SubTopic 20 -Topic 210 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483444/210-20-55-13 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 20 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483444/210-20-55-20 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (d)(2) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483466/210-20-50-3 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 8 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480434/815-10-50-8 + Details
Name: | us-gaap_DerivativeCollateralObligationToReturnCash
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of right to receive cash collateral under master netting arrangements that have not been offset against derivative liabilities. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 55 -Paragraph 13 -SubTopic 20 -Topic 210 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483444/210-20-55-13 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 20 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483444/210-20-55-20 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (d)(2) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483466/210-20-50-3 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 8 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480434/815-10-50-8 + Details
Name: | us-gaap_DerivativeCollateralRightToReclaimCash
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of right to receive securities collateral under master netting arrangements that have not been offset against derivative liabilities. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 55 -Paragraph 13 -SubTopic 20 -Topic 210 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483444/210-20-55-13 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 20 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483444/210-20-55-20 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (d)(2) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483466/210-20-50-3 + Details
Name: | us-gaap_DerivativeCollateralRightToReclaimSecurities
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 -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 4B -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480434/815-10-50-4B Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 4B -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480434/815-10-50-4B Reference 3: http://www.xbrl.org/2003/role/exampleRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 22 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483444/210-20-55-22 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483466/210-20-50-3 Reference 5: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 7 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483444/210-20-55-7 Reference 6: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 50 -Paragraph 4D -Subparagraph (c)(2) -SubTopic 20 -Topic 860 -Publisher FASB -URI https://asc.fasb.org/1943274/2147481326/860-20-50-4D + Details
Name: | us-gaap_DerivativeFairValueOfDerivativeAsset
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Fair value, after effect of master netting arrangement and deduction of obligation to return financial collateral not offset and financial instrument subject to master netting arrangement not offset, of financial asset or other contract with one or more underlyings, notional amount or payment provision or both, and contract can be net settled by means outside contract or delivery of asset. Includes derivative not subject to master netting arrangement or similar agreement. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 55 -Paragraph 13 -SubTopic 20 -Topic 210 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483444/210-20-55-13 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 8 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480434/815-10-50-8 + Details
Name: | us-gaap_DerivativeFairValueOfDerivativeAssetAmountOffsetAgainstCollateral
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 -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 4B -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480434/815-10-50-4B Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 4B -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480434/815-10-50-4B Reference 3: http://www.xbrl.org/2003/role/exampleRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 22 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483444/210-20-55-22 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483466/210-20-50-3 Reference 5: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 7 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483444/210-20-55-7 Reference 6: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 50 -Paragraph 4D -Subparagraph (c)(2) -SubTopic 20 -Topic 860 -Publisher FASB -URI https://asc.fasb.org/1943274/2147481326/860-20-50-4D + Details
Name: | us-gaap_DerivativeFairValueOfDerivativeLiability
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Fair value of asset associated with 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. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (b) -SubTopic 20 -Topic 210 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483466/210-20-50-3 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 55 -Paragraph 8 -SubTopic 20 -Topic 210 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483444/210-20-55-8 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 4B -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480434/815-10-50-4B Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 4B -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480434/815-10-50-4B Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5C -Subparagraph (SX 210.12-13C(Column F)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147477271/946-320-S99-5C Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5B -Subparagraph (SX 210.12-13B(Column E)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147477271/946-320-S99-5B Reference 7: http://www.xbrl.org/2003/role/exampleRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 20 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483444/210-20-55-20 + Details
Name: | us-gaap_DerivativeLiabilityFairValueGrossAsset
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 not subject to a master netting arrangement and elected not to be offset. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5C -Subparagraph (SX 210.12-13C(Column F)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147477271/946-320-S99-5C Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5B -Subparagraph (SX 210.12-13B(Column E)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147477271/946-320-S99-5B Reference 3: http://www.xbrl.org/2003/role/exampleRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 22 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483444/210-20-55-22 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483466/210-20-50-3 + Details
Name: | us-gaap_DerivativeLiabilityFairValueGrossLiabilityIncludingNotSubjectToMasterNettingArrangement
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Fair value of financial liability or contract with one or more underlyings, notional amount or payment provision or both, and contract can be net settled by means outside contract or delivery of asset, subject to master netting arrangement or similar agreement and not elected or qualified to offset, deducted from derivative liability. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 55 -Paragraph 13 -SubTopic 20 -Topic 210 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483444/210-20-55-13 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (d)(1)(i) -SubTopic 20 -Topic 210 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483466/210-20-50-3 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (d)(1)(ii) -SubTopic 20 -Topic 210 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483466/210-20-50-3 + Details
Name: | us-gaap_DerivativeLiabilityNotOffsetPolicyElectionDeduction
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Fair value of 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, not subject to a master netting arrangement. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (d) -SubTopic 20 -Topic 210 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483466/210-20-50-3 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 22 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483444/210-20-55-22 + Details
Name: | us-gaap_DerivativeLiabilityNotSubjectToMasterNettingArrangement
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

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

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

X
- Details
Name: | us-gaap_DerivativeInstrumentRiskAxis=agm_UnclearedDerivativesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DerivativeInstrumentRiskAxis=agm_ClearedDerivativesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |