Audited ·Last updated 27 Jul 2026·5 citations·Tier 2·0 uses

Short-Term Capital Gains Tax Calculator

Calculate short-term capital gains tax at ordinary income rates. See federal and state tax on assets held one year or less. Free calculator.

Short-Term Capital Gains Tax Calculator

Original cost basis
$
Sale proceeds
$
Other taxable income for the year
$
Filing Status
State income tax rate
%
Capital Gain
$15,000.00
Sale price minus purchase price
Federal Tax
$3,300.00
State Tax
$0.00
Total Tax
$3,300.00
Net Proceeds
$61,700.00
Marginal Tax Rate
22.00%
Effective Tax Rate
22.00%

Background.

Short-term capital gains are profits from selling assets held for one year or less. Unlike long-term gains, which receive preferential tax rates, short-term gains are taxed as ordinary income at the taxpayer's marginal federal rate, which can be as high as 37%. This creates a powerful incentive for investors to hold assets for more than one year, as the tax savings can be substantial. For a taxpayer in the 32% bracket, a $50,000 short-term gain produces $16,000 in federal tax, while the same gain held long-term would cost only $7,500 at the 15% rate—a difference of $8,500 that compounds meaningfully over repeated transactions.

Active traders, day traders, and investors who frequently rebalance portfolios generate predominantly short-term gains. The tax drag can significantly reduce after-tax returns, particularly in high-tax states where state income tax adds another 5% to 13% on top of federal rates. Some traders use tax-advantaged accounts such as IRAs and 401(k)s to avoid short-term gains tax entirely, though these accounts have contribution limits and withdrawal restrictions. High-frequency trading strategies that rely on small price movements can be rendered unprofitable after accounting for the marginal tax on short-term gains.

The marginal bracket stacking is critical for short-term gains. The gain is added on top of the taxpayer's other income, which can push them into a higher bracket. A taxpayer with $85,000 in taxable income who realizes a $30,000 short-term gain moves from the 22% bracket to the 24% bracket for the portion of the gain above $100,525. This means different portions of the same gain may be taxed at different rates. The calculator models this tiered taxation precisely. Understanding short-term gains tax is essential for anyone who trades stocks, flips real estate, or sells business assets within a year of acquisition. The Congressional Budget Office estimates that raising the holding period for long-term treatment would increase federal revenue, though such proposals face strong opposition from investment firms and retail investor advocacy groups.

Short-term gains also affect other tax provisions. They increase adjusted gross income, which can reduce eligibility for deductible IRA contributions, student loan interest deductions, and certain education credits. For retirees, short-term gains can trigger higher Medicare premiums through income-related monthly adjustment amounts. The interaction between short-term gains and the overall tax picture makes it essential to model the full liability before realizing gains.

Professional traders who elect mark-to-market accounting under Section 475(f) can avoid the short-term versus long-term distinction entirely, though this election has significant consequences and must be made by the tax return due date without extension. Understanding the trade-offs between mark-to-market, ordinary capital gains treatment, and entity structures such as S-corporations is essential for full-time traders.

Short-term traders must maintain meticulous records of every transaction, including dates, prices, and commissions, because the IRS can challenge basis calculations during an audit. Tax software specifically designed for active traders can automate much of this record-keeping, but the taxpayer remains responsible for accuracy.

Taxpayers should consult a qualified tax advisor when trading frequently.

Accurate record-keeping is essential for compliance.

What is short-term capital gains tax calculator?

Short-term capital gains are profits from the sale of assets held for one year or less. They are taxed at ordinary income tax rates, which range from 10% to 37% depending on the taxpayer's total taxable income. Short-term gains do not receive the preferential rates available to long-term gains. The holding period is measured from the day after purchase to the sale date.

The statutory framework for short-term gains is found in Internal Revenue Code Section 1222, which defines short-term capital gain as gain from the sale or exchange of a capital asset held for one year or less. Because these gains are taxed as ordinary income, they are subject to the same marginal bracket structure as wages, salaries, and business income. The unit of taxation is the dollar of gain, with no distinction between the source of the gain within the short-term category. Taxpayers report short-term gains on Schedule D of Form 1040, and the tax calculation flows through the ordinary income worksheet. The lack of preferential treatment makes short-term trading particularly costly for high-income taxpayers in states with high marginal rates.

Short-term gains are reported on Schedule D and flow through to Form 1040, Line 7.

Brokers report short-term transactions on Form 1099-B, which is transmitted directly to the IRS.

How to use this calculator.

  1. Enter the purchase price of the asset.
  2. Input the sale price.
  3. Enter your other taxable income for the year.
  4. Select your filing status.
  5. Optionally add your state's income tax rate.
  6. Review the capital gain, marginal rate, and total tax.
  7. Compare with the long-term capital gains rate to see the tax cost of selling early.

The formula.

Gain = Sale − Purchase, Tax = Σ Gᵢ × rᵢ

Short-term capital gains are taxed using the same marginal bracket system as wages and salaries. The gain is stacked on top of the taxpayer's other taxable income. The first dollar of the gain is taxed at the taxpayer's current marginal rate, and subsequent dollars may push the taxpayer into higher brackets.

The 2024 federal brackets for single filers are 10%, 12%, 22%, 24%, 32%, 35%, and 37%. The exact rate applied to each portion of the gain depends on where the gain falls within these brackets. For example, a single filer with $60,000 in other income realizes a $50,000 short-term gain. The first $40,525 of the gain falls in the 22% bracket (up to $100,525 total income), and the remaining $9,475 falls in the 24% bracket. The effective rate on the entire gain is a weighted average of these marginal rates, in this case approximately 22.38%.

State taxes are typically flat percentages of the gain, though some states have their own tiered systems. The calculator applies a flat state rate for simplicity. The total tax is the sum of federal and state taxes. Net proceeds equal the sale price minus total tax. Dimensional analysis confirms all monetary values are in dollars and rates are dimensionless percentages. The key insight is that short-term gains face the full marginal rate, making them expensive for high-income taxpayers.

Mathematically, the federal tax is the sum over all brackets of min(max(0, total_income minus bracket_floor), bracket_width) multiplied by the bracket rate, minus the tax that would have been owed on other income alone. This subtraction method ensures that only the gain itself is taxed at the incremental brackets. The effective rate equals total tax divided by capital gain, which will always be between the starting marginal rate and the highest bracket reached.

All outputs are denominated in dollars for consistency.

A worked example.

Example

An investor buys stock for $50,000 and sells it eight months later for $65,000. The $15,000 profit is a short-term capital gain because the holding period is less than one year. The investor's other taxable income is $60,000, placing them in the 22% federal bracket. The entire gain is taxed at 22% because it does not push total income above $100,525. Federal tax is $15,000 multiplied by 0.22, which equals $3,300. There is no state tax. Net proceeds are $65,000 minus $3,300, which equals $61,700. If the investor had held the stock for one year and one day, the gain would be long-term and taxed at 15%, producing only $2,250 in federal tax—a savings of $1,050. This example illustrates why tax-conscious investors delay sales when possible and why portfolio turnover is a major determinant of after-tax returns. Even a modest delay of a few weeks can shift treatment from short-term to long-term if the sale is near the one-year anniversary.

filing Statussingle
state Tax Rate0
sale Price65,000
taxable Income60,000
purchase Price50,000

Frequently asked questions.

How long is short-term for capital gains?
One year or less. The holding period begins the day after purchase and ends on the sale date. Selling on the 365th day is short-term; selling on the 366th day is long-term. The exact calendar day matters, so verify holding periods carefully. Brokerage statements typically show acquisition and sale dates, but settlement delays can shift the effective date. For securities purchased through dividend reinvestment plans, each reinvestment has its own holding period. Investors with multiple lots should use specific identification or FIFO accounting to determine which shares are sold.
Can I offset short-term gains with long-term losses?
Yes. Capital losses offset capital gains regardless of whether they are short-term or long-term. If losses exceed gains, up to $3,000 of net losses can offset ordinary income per year, with excess carried forward. However, short-term losses first offset short-term gains, and long-term losses first offset long-term gains before cross-matching. This ordering matters because short-term gains are taxed at higher rates, so offsetting them with short-term losses produces greater tax savings. Taxpayers should prioritize harvesting short-term losses against short-term gains when possible. The netting hierarchy is specified in Section 1222 of the Internal Revenue Code.
Do wash sale rules apply to short-term gains?
Wash sale rules apply to losses, not gains. If you sell at a loss and repurchase the same security within 30 days before or after the sale, the loss is disallowed and added to the basis of the replacement shares. Wash sale rules do not affect gains; you can sell and immediately repurchase without tax consequence on the gain itself. However, frequent trading generates more short-term gains, which are taxed at ordinary rates. Traders should be aware that wash sale adjustments can complicate basis tracking across multiple tax years.
How do short-term gains affect my tax bracket?
Short-term gains are added to your ordinary income and can push you into a higher marginal bracket. A taxpayer at the top of the 22% bracket who realizes a large short-term gain may find part of the gain taxed at 24% or higher. This stacking effect makes short-term gains particularly expensive for those near bracket thresholds. The gain can also trigger phase-outs of deductions and credits, such as the student loan interest deduction or the child tax credit. For high-income taxpayers, short-term gains may also trigger the 3.8% Net Investment Income Tax and higher Medicare premiums in retirement.
Are short-term gains taxed differently in retirement accounts?
No gains are taxed within traditional IRAs, 401(k)s, or Roth accounts. Traditional account withdrawals are taxed as ordinary income regardless of whether the underlying gains were short-term or long-term. Roth withdrawals are tax-free if qualified. Short-term versus long-term only matters for taxable brokerage accounts. This is why many active traders hold their trading accounts inside IRAs, though they must still comply with prohibited transaction rules and early withdrawal penalties. The tax-deferred wrapper eliminates the need to track holding periods.
What records do I need for short-term gains?
Keep records of purchase date, sale date, purchase price, sale price, and any commissions or fees. Brokers provide Form 1099-B, but you are responsible for reporting accurate basis. For crypto and other assets, maintain your own records as broker reporting may be incomplete. The IRS requires contemporaneous documentation to support basis claims during an audit. For real estate, retain closing statements, improvement receipts, and depreciation schedules. For inherited property, obtain a date-of-death appraisal. Good record-keeping is the best defense against an IRS challenge.
Can short-term gains trigger the Net Investment Income Tax?
Yes. The 3.8% NIIT applies to net investment income, including short-term capital gains, for taxpayers with modified adjusted gross income above $200,000 (single) or $250,000 (married). Short-term gains count as investment income for NIIT purposes. Because short-term gains are taxed at ordinary rates plus potentially the NIIT, a taxpayer in the 37% bracket with NIIT exposure faces a combined federal rate of 40.8% on short-term gains, before state taxes. This makes short-term realization extremely costly for high earners and explains why wealthy investors strongly prefer long-term holding strategies.
How do I minimize short-term gains tax?
Hold assets for more than one year when possible. Use tax-loss harvesting to offset gains. Trade in tax-advantaged accounts. Consider qualified opportunity zone investments. Donate appreciated assets to charity. Each strategy has trade-offs and should be evaluated in context. For example, tax-loss harvesting requires monitoring wash sale rules and tracking adjusted basis across years. Trading in retirement accounts defers tax but limits liquidity. Charitable donations of appreciated stock eliminate gain recognition but require selecting the right asset and charity. A comprehensive tax strategy should integrate holding period decisions with overall financial planning.

Embed

Quanta Pro

Paid features are coming later.

  • All 313 calculators remain free
  • No billing is enabled
Coming soon