An asset with a zero cost basis has no invested capital for you to recover before the IRS starts taxing gains, so when you sell, the entire sale price counts as taxable profit. Federal tax on that gain runs from 0% to 37% depending on how long you held the asset and your income, with a possible 3.8% surtax on top for higher earners.1Internal Revenue Service. IRS Releases Tax Inflation Adjustments for Tax Year 2026 Zero basis usually shows up in four places: gifted property, certain stock compensation, fully depreciated business or rental property, and lost records.
What Zero Cost Basis Actually Means
Cost basis is the number the IRS uses as your starting point when it measures a gain or loss. For a purchased asset, it is generally what you paid plus commissions or fees. When you sell, you subtract that basis from the sale price. A positive result is a capital gain, a negative result is a capital loss.2Internal Revenue Service. Topic No. 409, Capital Gains and Losses
Sell a stock for $10,000 with a $4,000 basis and the taxable gain is $6,000. Sell that same stock for $10,000 with a zero basis and the taxable gain is the full $10,000. Nothing gets subtracted, so nothing shelters the proceeds.
How You End Up With Zero Basis
You will almost never end up here from a routine brokerage purchase. Zero basis comes from non-standard ways of acquiring assets or from tax rules that erode basis over time.
Gifted Assets
When someone gives you an asset, you generally inherit the donor’s basis, called a carryover basis.3Office of the Law Revision Counsel. 26 US Code 1015 – Basis of Property Acquired by Gifts and Transfers in Trust If the donor’s basis was already zero, yours is too. That happens when the donor originally acquired the asset in a way that produced no taxable cost, or when the donor had already recovered the full basis through depreciation before giving it to you.
Stock Compensation
Equity from an employer produces a lot of confused zero-basis reporting. With non-qualified stock options, you have no basis until you exercise. At exercise, the spread between the grant price and the market price is taxed as ordinary income and shows up on your W-2. That taxed amount becomes your basis in the shares.4Internal Revenue Service. Topic No. 427, Stock Options
Restricted stock units work the same way. The fair market value of the shares on the vesting date is taxed as ordinary income, and that value is your basis. A zero basis often appears on the 1099-B for RSU sales simply because the broker did not receive the compensation figure from payroll. The basis is not really zero, but you have to correct it on your return using your W-2 and vesting statements.
Fully Depreciated Property
This is one of the most common real-world causes. Each depreciation deduction on rental property or business equipment reduces your adjusted basis. Enough deductions, and the basis reaches zero. Sell then, and the entire sale price minus selling costs is taxable gain. For real estate, the portion of that gain attributable to depreciation is taxed at a special rate of up to 25% rather than the lower long-term capital gains rates.2Internal Revenue Service. Topic No. 409, Capital Gains and Losses The IRS calculates recapture based on the depreciation you were allowed to take, whether you actually claimed it or not. Skipping depreciation in earlier years does not reduce the tax at sale.
Nontaxable Stock Dividends and Reorganizations
When a corporation distributes additional shares as a nontaxable stock dividend, you do not get a fresh basis in the new shares. Your existing basis gets spread across all the shares you now hold. If the original basis was zero, the new shares are zero too.5Internal Revenue Service. Publication 550 – Investment Income and Expenses
Lost Records
If you cannot produce trade confirmations or old statements, you may be stuck reporting zero. The IRS puts the burden of proving basis on the taxpayer.6Internal Revenue Service. Topic No. 305, Recordkeeping Before defaulting to zero, contact your broker, transfer agent, or the company itself. Records sometimes go back decades. A legal doctrine called the Cohan rule allows courts to accept reasonable basis estimates from lost records, but only when you can point to some factual support for the estimate.7Legal Information Institute. Cohan Rule
Inherited Property Is Not the Same
People often confuse gifts with inheritances. They do not work the same way. When you inherit an asset from someone who has died, your basis is stepped up (or in rare cases stepped down) to the fair market value on the date of death.8Office of the Law Revision Counsel. 26 US Code 1014 – Basis of Property Acquired From a Decedent If a relative bought stock for $500 decades ago and it was worth $50,000 when they died, your basis is $50,000, not $500 and not zero. The zero-basis problem in this article does not apply to true inheritances.
How the Sale Gets Taxed
From the proceeds, you subtract direct selling expenses like commissions. Everything else is gain. What matters next is your holding period.
Short-Term or Long-Term
Hold the asset one year or less and the gain is short-term, taxed at ordinary income rates that top out at 37%.1Internal Revenue Service. IRS Releases Tax Inflation Adjustments for Tax Year 2026 Hold it more than a year and the gain qualifies for long-term capital gains rates of 0%, 15%, or 20%, depending on your taxable income.2Internal Revenue Service. Topic No. 409, Capital Gains and Losses A short-term sale of a zero-basis asset is the worst case: every dollar of proceeds is both taxable and taxed at your highest marginal rate.
Holding periods can carry over. For gifted property, you tack the donor’s holding period onto your own. If the donor held the stock for five years before the gift, you inherit those five years, so the gain qualifies as long-term the moment you receive the asset (as long as the donor held for more than a year).9Office of the Law Revision Counsel. 26 US Code 1223 – Holding Period of Property For RSU shares, the clock starts on the vesting date, not the grant date. Time spent vesting does not count.
The 3.8% Net Investment Income Tax
High earners owe an additional 3.8% net investment income tax on top of the capital gains rate. It applies to the lesser of your net investment income or the amount by which your modified adjusted gross income exceeds $200,000 for single filers, $250,000 for joint filers, or $125,000 for married filing separately.10Internal Revenue Service. Net Investment Income Tax These thresholds are not indexed for inflation. A big zero-basis gain can push you across the line even if your regular income would not.
Depreciation Recapture
If your zero basis came from depreciation on real property, part of the gain gets taxed as recapture at up to 25%, rather than at the standard long-term capital gains rate. Only the gain exceeding the total depreciation you took (or were allowed to take) qualifies for the regular 0%, 15%, or 20% rates. On a fully depreciated property, the recapture portion can be most of the gain.
Reporting a Zero-Basis Sale
Every capital asset sale gets reported, and a zero-basis sale follows the same path as any other.
You list each transaction on Form 8949, which separates short-term sales in Part I from long-term sales in Part II.11Internal Revenue Service. About Form 8949, Sales and Other Dispositions of Capital Assets The proceeds go in Column (d), and $0 goes in Column (e) for cost basis. The gain in Column (h) equals the proceeds minus any selling expenses.
If your broker sent a 1099-B with the basis left blank or marked unknown, you still enter $0 in the basis column. The Form 8949 instructions direct you to check box C for short-term or box F for long-term when no 1099-B was received, and to attach an explanation if you are not using actual cost.12Internal Revenue Service. Instructions for Form 8949
Totals from Form 8949 flow to Schedule D, where the net capital gain or loss for the year gets calculated. Capital losses from other investments offset your zero-basis gain dollar for dollar at that stage, before the net figure moves to Form 1040.
Ways to Cut the Tax
A zero-basis asset that has appreciated is a real planning problem. Several approaches can help.
Harvest Losses in the Same Year
Capital losses offset capital gains dollar for dollar. Sell another position at a $15,000 loss in the same year you sell a zero-basis stock for $25,000 and the net gain becomes $10,000. If total losses exceed total gains for the year, up to $3,000 of the excess ($1,500 if married filing separately) offsets ordinary income, and anything beyond that carries forward indefinitely.13Office of the Law Revision Counsel. 26 USC 1211 – Limitation on Capital Losses If a zero-basis sale is on the horizon, reviewing your portfolio for unrealized losses to harvest in the same year is one of the cleanest ways to reduce the bill.
Donate the Asset Instead of Selling It
Donating a long-held zero-basis asset to a qualified public charity can wipe out the tax entirely. You generally deduct the full fair market value rather than your basis, and you pay no capital gains tax on the appreciation. The deduction for appreciated stock donated to a public charity is capped at 30% of adjusted gross income for the year, with any excess carrying forward for up to five additional years.14Office of the Law Revision Counsel. 26 US Code 170 – Charitable, Etc., Contributions and Gifts With a zero-basis asset, where the whole value is unrealized gain, this produces a charitable deduction and full avoidance of what would otherwise be a fully taxable sale.
Spread the Gain With an Installment Sale
If you are selling property rather than publicly traded stock, you may be able to structure the transaction as an installment sale and receive payments across multiple years. The gain gets recognized proportionally as payments come in, which can keep you in lower brackets each year.15Internal Revenue Service. Publication 537, Installment Sales For a zero-basis asset the gross profit percentage is 100%, so every dollar received is taxable, but spreading those dollars across years still lowers the effective rate. The installment method is not available for sales of publicly traded securities.
Wait for Long-Term Treatment
If you received the asset recently, such as newly vested RSUs, holding for more than a year before selling turns a short-term gain into a long-term one. That single change can cut the top federal rate from 37% down to 20%. The tradeoff is market risk during the wait.
Records You Should Keep
The IRS requires you to keep records supporting your basis for as long as you hold the asset and at least three years after you file the return reporting the sale.16Internal Revenue Service. How Long Should I Keep Records For a zero-basis asset that matters more than usual, because you need to explain why the basis is zero rather than simply missing. Useful documents include gift letters or Form 709 gift tax returns, vesting schedules and W-2s for stock compensation, depreciation schedules for business or rental property, and corporate action notices for stock dividends and reorganizations.
On audit, “I don’t know what I paid” is not the same thing as “the basis is legitimately zero.” The first means you may be overpaying. The second means you can affirmatively explain the acquisition. Either way, documentation also protects your holding period, so a long-term gain does not get reclassified as short-term because you cannot prove when the clock started.