Skip to content
Calculators
Reviews

Capital Gains Tax Calculator: What You’ll Really Owe the IRS

June 20, 2026by cyborg.vaibhav@gmail.com3 min read

Dana sold a stock eleven days before it would have qualified as a long-term gain, purely because the price ticked up and it felt like the right moment — the extra tax bill that followed was the first time timing cost something concrete and countable. Selling an investment one day earlier or later can change the tax owed on the gain dramatically — not because of any market timing, but because of a single date on the calendar: the one-year holding mark that separates short-term from long-term capital gains.

What the calculator actually estimates

Purchase price, sale price, and holding period combine to estimate the tax owed — since short-term gains (held one year or less) are taxed as ordinary income, while long-term gains get preferential, usually much lower, rates.

A $5,000 gain taxed at a long-term rate can owe meaningfully less than the same gain taxed as ordinary income at a short-term rate — often the difference between roughly 15% and a marginal rate that could be considerably higher, depending on income.

The “hold one more day” rule, made concrete

Selling at exactly 365 days can still count as short-term — the threshold is “more than one year,” meaning day 366 at the earliest. Checking the exact purchase date before selling near that boundary is one of the simplest, most overlooked ways to reduce a tax bill.

Tax-loss harvesting, briefly

Losses can offset gains dollar for dollar, and a limited amount of net losses can offset ordinary income too, with any excess carried forward to future years. Selling a losing position deliberately to offset a winning one’s gain is a legitimate, common strategy — just watch for the “wash sale” rule if repurchasing the same security soon after.

State taxes are a separate layer

This calculator focuses on federal treatment — many states also tax capital gains, often as ordinary income with no special long-term rate at all, which can meaningfully change the total bill depending on where you live.

Same $5,000 gain, one date apart Sold at 364 days (short-term): ~$1,100 tax Sold at 366 days (long-term): ~$750 tax

Do I owe tax on a gain I haven’t sold yet?

No — capital gains tax applies only when a position is actually sold (realized), not on paper gains from a position still being held.

Are gains in a 401(k) or IRA taxed this way?

No — gains inside tax-advantaged retirement accounts aren’t subject to capital gains tax at all; they follow the account’s own withdrawal tax rules instead.


Disclaimer: This article is for general information only and is not financial or tax advice. Consult a qualified advisor before making investment or tax decisions.

Leave a Reply