Calculator
Estimated Tax Payable
$3,750
Scenario Analysis
Because you held the asset for 13 months, your gain qualifies for long-term capital gains treatment. Preferential long-term rates (0%, 15%, or 20%) apply based on your income band, instead of your ordinary income tax bracket.
*Estimated based on standard federal income tax brackets. Does not account for state-level taxes, Net Investment Income Tax (NIIT), or specific tax credits.
Capital Gains Tax (CGT) is the federal and state tax you pay on the profits realized from the sale of an investment asset, such as individual stocks, mutual funds, Exchange-Traded Funds (ETFs), cryptocurrency, or investment real estate. In the United States, a capital gain occurs when you sell any asset for more than its original adjusted purchase price, known as your cost basis. Conversely, if you dispose of an investment asset for less than its cost basis, you incur a capital loss. Understanding how the Internal Revenue Service (IRS) classifies and taxes these transactions is essential for every American investor seeking to maximize their long-term, after-tax investment returns. The IRS divides capital gains into two distinct categories based on your holding period: short-term and long-term. Short-term capital gains apply to assets held for one year or less before disposal and are taxed as ordinary income at your standard marginal federal income tax bracket, which can reach up to 37 percent. Long-term capital gains apply to assets held for longer than one year and benefit from significantly lower tax rates of 0 percent, 15 percent, or 20 percent depending on your taxable income. Recognizing these thresholds is crucial because the differential between ordinary income rates and long-term capital gains rates is substantial, often representing a tax savings of fifty percent or more for high-earning households.
The core equation used to calculate capital gains is straightforward: Capital Gain = Sale Proceeds - Cost Basis. The cost basis represents your total acquisition price, adjusted to include standard transaction costs such as broker commission fees, legal expenses, transfer taxes, and other capital improvements. In our interactive estimation tool, we model the difference between short-term and long-term tax liabilities by utilizing a conceptual fifty-percent taxable gain discount for assets held for twelve months or longer, which closely mirrors the real-world tax savings American investors achieve when moving from ordinary income brackets to preferential long-term capital gains brackets. Our calculator combines your gross gains with your annual taxable income to estimate the marginal impact of adding an investment profit to your annual tax return. The calculation estimates the total tax liability on your ordinary income alone, and then compares it to the total liability when the taxable capital gain is layered on top. This marginal analysis is critical because capital gains can push you into a higher federal tax bracket, triggering additional taxes or phase-outs. Please note that while our tool provides a robust conceptual estimate, your actual IRS tax return will utilize specific IRS Form 1040 Schedule D worksheets, which account for state-level income taxes, the 3.8 percent Net Investment Income Tax (NIIT) for high earners, and complex capital loss carryovers.
In the United States, holding an investment asset for exactly 366 days instead of 365 days can dramatically alter your net return. Moving an investment from a short-term holding to a long-term holding triggers a shift from ordinary income tax brackets to preferential long-term capital gains brackets. This transition can cut your tax liability on that profit in half, making precise record-keeping and timing of sales one of the most powerful tax-planning strategies available to individual investors.
Under IRS guidelines, you can use realized capital losses to offset your capital gains in the same tax year. If your total losses exceed your total gains, you can use the net capital loss to offset up to $3,000 of ordinary income (such as salary or wages) per year, with any remaining unused losses carried forward indefinitely to future tax years. Toward the end of the calendar year, review your underperforming assets to identify potential tax-loss harvesting opportunities.
When harvesting losses to offset your capital gains, you must remain highly vigilant of the IRS wash-sale rule. This rule dictates that you cannot claim a tax loss on a security if you purchase a 'substantially identical' security within thirty days before or after the sale. If a wash sale is triggered, the loss is disallowed for the current tax year and must instead be added to the cost basis of the newly purchased security, delaying your tax benefit.
Always keep meticulous records of all transaction costs, such as brokerage commissions, exchange fees, and advisory charges. When calculating your taxable capital gains, add these costs to your initial purchase price to increase your adjusted cost basis, and subtract them from your sale price to reduce your gross proceeds. A higher cost basis mathematically reduces your taxable capital gain, saving you money on your tax return.
Consider holding highly tax-inefficient assets—such as high-turnover mutual funds, actively traded stocks, or high-yield bonds—within tax-advantaged accounts like a Traditional IRA, Roth IRA, or 401(k) where capital gains taxes are deferred or entirely eliminated. Reserve your taxable brokerage accounts for tax-efficient investments like broad-market index funds, which generate very few capital gains distributions and are eligible for long-term capital gains rates when sold.
Because long-term capital gains tax brackets (0%, 15%, and 20%) are tied directly to your overall taxable income, you can achieve substantial tax savings by timing major asset sales during years when your ordinary income is lower. Excellent opportunities include transition periods, such as a sabbatical, a career transition, early retirement before social security begins, or a year when your business experiences a temporary downturn.
Alex bought $15,000 worth of shares in a high-growth tech company. Just nine months later, the shares appreciated to $25,000, and Alex decided to sell to capture the $10,000 profit. Because the holding period was under one year, the IRS taxed the entire $10,000 gain as ordinary income. Since Alex falls into the 24 percent federal income tax bracket, he owed $2,400 in federal capital gains taxes, leaving an after-tax profit of $7,600.
Sarah invested $15,000 in the same company but waited fourteen months before selling her shares for $25,000. Because she held the asset for longer than one year, her $10,000 profit qualified for preferential long-term capital gains tax rates. Falling into the fifteen percent long-term capital gains bracket, Sarah's tax liability on the gain was only $1,500, securing an after-tax profit of $8,500 and saving $900 compared to Alex's short-term trade.
During a market correction, Mark realized a $20,000 capital gain from selling a long-held ETF. To manage his tax liability, he decided to harvest losses by selling several underperforming stocks that were currently down by a combined $15,000. By offsetting his gains with these losses, Mark reduced his net taxable capital gain from $20,000 to just $5,000, significantly lowering his tax bill and freeing up cash to invest in stronger opportunities.
Everything you need to know about this topic.

Financial Chaos Analyst
Ivy Sinclair-Wren is a Financial Chaos Analyst covering investing, AI, wealth psychology, and the emotional consequences of opening finance apps during market crashes. Based in Melbourne, she specializes in demystifying the US tax code and helping users navigate the intersection of spreadsheet logic and human irrationality.