Capital gains on Fannie Mae investments are taxed under the same federal rules as other securities: hold the stock or mortgage-backed security more than a year and your profit falls into the long-term capital gains brackets of 0%, 15%, or 20%; sell in a year or less and the gain is taxed as ordinary income at rates up to 37%. What makes Fannie Mae capital gains income different from a plain stock sale is the work required to figure the taxable amount, especially for mortgage-backed securities, where your cost basis shifts every month and part of the gain can be pulled out and taxed as ordinary interest.
Short-Term Versus Long-Term Rates
Holding period is the single biggest lever. Sell within one year of purchase and the profit is a short-term capital gain, taxed at your ordinary income rate. For the 2026 tax year, ordinary rates run from 10% to 37%.1Internal Revenue Service. IRS Releases Tax Inflation Adjustments for Tax Year 2026 Short-term trading in FNMA, which is volatile, is the most expensive way to realize a profit.
Hold more than a year and the long-term rates take over. For 2026:2Internal Revenue Service. Topic No. 409 – Capital Gains and Losses
- 0% on taxable income up to $49,450 (single) or $98,900 (married filing jointly).
- 15% on taxable income from $49,450 to $545,500 (single) or $98,900 to $613,700 (married filing jointly).
- 20% above those upper thresholds.
Long-term gains stack on top of your other income, so a large sale can push you from the 15% bracket into 20% even if your salary alone would not.
The 3.8% Net Investment Income Tax
Higher-income investors owe an additional 3.8% surtax on investment income. It applies to the lesser of your net investment income or the amount by which your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly).3Internal Revenue Service. Net Investment Income Tax Those thresholds are not indexed for inflation. Combined with the top 20% long-term rate, the maximum federal rate on a long-term gain reaches 23.8%.
Figuring the Gain on Fannie Mae Stock
Common and preferred FNMA shares are capital assets under the tax code, and the gain or loss is your sale proceeds minus your adjusted cost basis (purchase price plus commissions).4Office of the Law Revision Counsel. 26 U.S. Code 1221 – Capital Asset Defined
Basis is where longtime holders trip up. The Federal Housing Finance Agency placed Fannie Mae into conservatorship in September 2008, but the conservatorship was not a taxable event for common stockholders.5U.S. Bureau of Economic Analysis. Where Do GSEs, Like Fannie Mae and Freddie Mac, Appear in the GDP Accounts? Shares were not canceled. Dividends stopped and governance shifted, but your original basis and holding period carried through unbroken. Anyone still sitting on pre-2008 shares will realize a long-term gain when they sell today.
If you bought in multiple lots and can’t identify which specific shares you sold, the IRS default is first-in, first-out: the earliest shares are treated as sold first.6Internal Revenue Service. Stocks, Options, Splits, and Traders 3
Losses on FNMA stock offset other capital gains dollar for dollar. If losses exceed gains for the year, up to $3,000 of the excess can be deducted against ordinary income ($1,500 if married filing separately), and any remainder carries forward indefinitely.2Internal Revenue Service. Topic No. 409 – Capital Gains and Losses
Wash Sales Can Erase the Loss
If you sell FNMA at a loss and buy substantially identical stock within 30 days before or after the sale, the wash sale rule disallows the loss for that year.7Office of the Law Revision Counsel. 26 USC 1091 – Loss From Wash Sales of Stock or Securities The disallowed amount is added to the basis of the replacement shares, so it isn’t gone forever, but the current-year deduction is. To keep the loss, wait at least 31 days before repurchasing. Buying Freddie Mac in the window could raise a substantially-identical question, though that argument is less clear-cut than repurchasing the same ticker.
Figuring the Gain on Fannie Mae Mortgage-Backed Securities
MBS gains take real work. These are debt instruments, and the tax code makes you adjust basis as the underlying mortgages pay down.
Principal Payments Reduce Basis
Each monthly payment from homeowners in the pool includes a principal component. That principal flows to you as a return of capital, not taxable income, and it lowers your cost basis. Over time your basis shrinks, so a sale that looks like a modest gain at first can turn into a larger taxable gain once the amortization is reflected.
Premium Amortization Is Mandatory
Buy an MBS above par and you must amortize the premium over the security’s life using the constant yield method.8Office of the Law Revision Counsel. 26 U.S. Code 171 – Amortizable Bond Premium Each year’s amortization reduces your basis and offsets your taxable interest. For taxable bonds this is required, not elective. Skip it and your basis at sale will be wrong.
Market Discount Becomes Ordinary Income
Buy below par and the rule flips. When you sell, the portion of your gain equal to accrued market discount is taxed as ordinary income, not at capital gains rates.9Office of the Law Revision Counsel. 26 U.S. Code 1276 – Disposition Gain Representing Accrued Market Discount Treated as Ordinary Income The accrued amount is proportional to how long you held the bond relative to its remaining life. Only the gain above that accrued figure qualifies for capital gains treatment.
The de minimis rule offers an out. If the total market discount is less than one-quarter of 1% of the bond’s stated redemption price at maturity, multiplied by the complete years remaining to maturity when you bought it, the discount is treated as zero and the entire profit is a capital gain.10Legal Information Institute. 26 USC 1278(a)(2) – Definition of Market Discount
Brokers usually provide adjusted basis at tax time, but for older or complex MBS positions their numbers can be incomplete. If you hold MBS directly rather than through a fund, keep your own records of principal payments and any premium or discount adjustments.
Inherited Shares or MBS
If you inherit Fannie Mae stock or MBS, your basis is generally the fair market value on the decedent’s date of death, not what they paid.11Office of the Law Revision Counsel. 26 USC 1014 – Basis of Property Acquired From a Decedent That stepped-up basis can wipe out decades of appreciation, or, if the value fell during conservatorship, step down to a lower figure (you cannot claim the decedent’s larger paper loss). The holding period on inherited property is automatically long-term regardless of when you sell.
Estate tax is a separate matter from the capital gains tax and only affects estates above the federal exemption, which is $15,000,000 per person in 2026.12Internal Revenue Service. What’s New – Estate and Gift Tax For most heirs the stepped-up basis is the whole tax story.
Worthless Preferred Stock
Some Fannie Mae preferred series have traded at fractions of a cent for years. If a security that is a capital asset becomes completely worthless during the tax year, the loss is treated as a sale for zero on the last day of that year.13Office of the Law Revision Counsel. 26 U.S. Code 165 – Losses The word doing the work is “completely.” A security still trading, even at negligible prices, does not qualify, and you carry the burden of proving worthlessness by pointing to a specific event that fixed it in the year you claim the deduction. FNMA common stock has continued to trade on the OTC market throughout conservatorship, which makes a worthlessness claim on common shares hard. Certain preferred series with no realistic path to recovery may present a stronger argument, and this is a place to get professional advice before filing.
Reporting the Sale
Every sale goes on Form 8949 and flows into Schedule D of your Form 1040.14Internal Revenue Service. Instructions for Form 8949 Your broker sends Form 1099-B with the gross proceeds and, for covered securities, a cost basis. Reconcile those numbers against your own records.
The reconciliation matters more here than for typical stocks. Shares bought before 2011 are generally non-covered, meaning brokers were not required to track basis. If your 1099-B shows proceeds on 2007 FNMA shares with no basis, the IRS will treat the basis as zero unless you supply the right figure, which would mean paying tax on the entire sale price.
For MBS, any portion of the gain reclassified as accrued market discount is reported as interest income, not as part of the capital gain on Schedule D.14Internal Revenue Service. Instructions for Form 8949 The Form 8949 instructions include a worksheet for the split. Getting that division right is where MBS filers most often draw IRS notices.
State Tax Sits on Top
Federal tax is not the whole bill. Most states treat capital gains as ordinary income, so your state rate applies on top of the federal rate. A few states impose no income tax; others push the combined burden above 30% for higher earners. Check your state’s treatment when estimating what a Fannie Mae sale will actually cost you.