---
slug: short-term-capital-gains-calculator
title: "Short-Term Capital Gains Calculator"
category: finance
updated: 2026-11-18
canonical: https://calcseed.com/c/finance/short-term-capital-gains-calculator/
html: /c/finance/short-term-capital-gains-calculator/
---

# Short-Term Capital Gains Calculator

Calculate tax on short-term capital gains from selling assets held one year or less.

## Quick answer

**Quick answer:** with the default inputs ($50, $65, 100, 24%), the tax owed is **$360.00**. At these inputs: short-term gain = **$1,500.00**, after-tax profit = **$1,140.00**. Change any input to update the result.

## Default calculation

Values computed by this calculator at exactly the default inputs listed below.

### Inputs (defaults)

| Input | Value | Unit |
| --- | --- | --- |
| Purchase price per share | 50 | $ |
| Sale price per share | 65 | $ |
| Number of shares | 100 |  |
| Ordinary income tax rate | 24 | % |

### Outputs at these defaults

| Output | Value | Unit |
| --- | --- | --- |
| Tax owed | 360 |  |
| Short-term gain | 1500 |  |
| After-tax profit | 1140 |  |

## Formula

```text
gain = (sale − purchase) × shares; tax = gain × ordinary rate
```

## Inputs

| Variable | Type | Unit | Default |
| --- | --- | --- | --- |
| Purchase price per share | number | $ | 50 |
| Sale price per share | number | $ | 65 |
| Number of shares | number |  | 100 |
| Ordinary income tax rate | number | % | 24 |

## Outputs

| Result | Format |
| --- | --- |
| Tax owed | primary |
| Short-term gain | currency |
| Tax owed | currency |
| After-tax profit | currency |

## How it works

### What this calculator returns

It computes the gain on a position held one year or less and taxes it at your ordinary income rate, the way the IRS does. At the defaults — 100 shares bought at **$50** and sold at **$65**, with a **24%** marginal rate — the gain is **$1,500.00**, the tax is **$360.00** and you keep **$1,140.00**.

### Why the rate is your income rate

Congress gives preferential rates to long-term gains to encourage holding, and withholds them from positions held a year or less. A short-term gain is therefore added to your wages, interest and other income and taxed at whatever bracket it lands in — 10% to 37% on the federal schedule.

It stacks on top, which means the marginal rate often exceeds your average rate. A single filer with $90,000 of wages is in the 22% bracket, but another $40,000 of short-term gains pushes $25,000 of that into the 24% bracket. The whole gain is not taxed at one rate, and a single-rate calculator like this one approximates by using the marginal rate the gain will actually face.

### Worked example at the defaults

The gain per share is $65 − $50 = **$15**. Multiply by 100 shares for **$1,500**. Apply 24%: $1,500 × 0.24 = **$360**. Subtract from the gain for **$1,140** of after-tax profit, which is a 22.8% return on the $5,000 you invested.

- Gain per share: $65 − $50 = $15
- Total gain: $15 × 100 = $1,500
- Tax at 24%: $1,500 × 0.24 = $360
- After-tax profit: $1,500 − $360 = $1,140
- After-tax return on $5,000 invested: 22.8%

The pre-tax return was 30% and the after-tax return is 22.8%. That 7.2-point haircut is the cost of the short holding period, and it is the number to compare against the long-term treatment in the table below.

### Tax on the same $1,500 gain

| Ordinary rate | Tax owed | You keep |
| --- | --- | --- |
| 12% | $180 | $1,320 |
| 22% | $330 | $1,170 |
| 24% | $360 | $1,140 |
| 32% | $480 | $1,020 |
| 35% | $525 | $975 |
| 37% | $555 | $945 |

The spread from the 12% to the 37% bracket is $375 on a $1,500 gain — 25% of the profit. Two investors with identical trades can keep very different amounts, which is why the marginal bracket, not the average rate on a tax return, is the right input here.

### Short-term versus long-term

| Treatment | Effective rate | Tax on $1,500 | You keep |
| --- | --- | --- | --- |
| Short-term, 24% | 24.0% | $360 | $1,140 |
| Short-term, 37% plus 3.8% NIIT | 40.8% | $612 | $888 |
| Long-term, 15% | 15.0% | $225 | $1,275 |
| Long-term, 20% | 20.0% | $300 | $1,200 |
| Long-term, 20% plus NIIT | 23.8% | $357 | $1,143 |
| Long-term, 0% bracket | 0.0% | $0 | $1,500 |

Waiting past the one-year mark at the 24% bracket saves $135 on this trade. At the top bracket with the net investment income tax, the same wait saves $255 — nearly a fifth of the gain. That is the entire compensation for patience, and it is why the holding-period question comes before the sell decision rather than after.

The 0% row is not hypothetical. A retired couple with $80,000 of taxable income and $1,500 of long-term gains pays nothing federally on the gain, while the same $1,500 realized short-term would be taxed at 12% or 22%. Low-income years are the cheapest time to realize long-term gains, and the most expensive time to realize short-term ones.

### Where the one-year line actually falls

The clock starts the day after you buy and ends on the day you sell. A purchase on March 10, 2025 becomes long-term on March 11, 2026 — one year plus one day. Selling on March 10, 2026 is still short-term, and the difference is the whole tax spread. Brokers report the classification on Form 1099-B, but the trade date is what governs, not the settlement date.

Wash sales add a wrinkle. If you sell at a loss and repurchase the same or a substantially identical security within 30 days before or after, the loss is disallowed and added to the basis of the replacement shares. The replacement shares also inherit the old holding period, so a loss sale can accidentally turn a new position into a short-term one.

#### Choosing which shares you sold

If you bought in several lots, the default method is first-in, first-out, which often realizes the oldest and largest gain. Specifying the lots at the time of sale — specific identification — lets you sell the highest-basis shares first and cut the taxable gain. On a position with a $40 lot and a $60 lot, selling the $60 lot at $65 produces $500 of gain instead of $2,500, a $480 difference at the 24% rate.

- FIFO: sells your oldest lot first, usually the lowest basis and the largest gain
- Specific identification: you name the lot at the trade, so you can sell the highest basis
- Average cost: not permitted for individual stocks, only for certain mutual fund accounts
- Highest-in, first-out: a broker setting some platforms offer to automate specific identification

### Losses, and what they are worth

A short-term loss first offsets short-term gains, then long-term gains, then up to **$3,000** of ordinary income per year ($1,500 married filing separately), with the remainder carried forward. Losses are therefore worth more against short-term gains than against long-term ones, because they shelter income taxed at up to 37% rather than 20%.

#### Why a loss shows no refund

This calculator returns zero tax on a loss rather than a refund, because a realized loss does not generate a credit — it offsets other gains or income you report elsewhere. The value shows up on the return as a smaller total, not as a payment.

### What the estimate omits

Four items sit outside the arithmetic. **State tax** applies in most states at ordinary rates, adding 5%–13% in places like California and New York. The **3.8% net investment income tax** applies above $200,000 single and $250,000 joint, taking a 37% federal rate to 40.8%. **Commissions** adjust the numbers: buying fees add to basis, selling fees reduce proceeds. And **estimated taxes** may be due quarterly, with an underpayment penalty if the gain is large and no withholding covers it.

Add state tax at 6% to the default and the bill rises from $360 to $450, cutting after-tax profit to $1,050. That is a 30% pre-tax return becoming a 21% after-tax return, and it is the number that matters when you decide whether a short holding period is worth the trade.

## FAQ

### When does a gain become long-term?

After more than one year. Buy on March 10, 2025 and the position turns long-term on March 11, 2026. Selling on March 10 is still short-term and costs an extra $135 on a $1,500 gain at 24%.

### How much tax do I owe on a $1,500 short-term gain?

At a 24% marginal rate, $360, leaving $1,140. At 37% it is $555, and at 12% it is $180.

### Can short-term losses offset my gains?

Yes, dollar for dollar, and they are more valuable than long-term losses because they shelter income taxed at up to 37%. Excess losses can offset $3,000 of ordinary income a year, with the rest carried forward.

### Does this include state tax?

No. Most states tax short-term gains as ordinary income at 5%–13%. Adding 6% to the default raises the bill from $360 to $450.

### What is the net investment income tax?

A 3.8% surtax on investment income above $200,000 single or $250,000 joint modified AGI. It lifts the top short-term rate from 37% to 40.8%, or $612 on a $1,500 gain.

### Do trading fees change the gain?

Yes. Buying commissions add to your basis and selling commissions reduce proceeds, so both shrink the taxable gain. On a $5,000 purchase, $10 of fees changes the tax by $2.40 at the 24% rate.

### What happens if I sell at a loss and buy back quickly?

The wash-sale rule disallows the loss if you repurchase within 30 days before or after the sale. The disallowed loss is added to the new shares&rsquo; basis, and those shares inherit the old holding period.

### Can I choose which shares to sell?

Yes, with specific identification. Selling a $60 lot instead of a $40 lot at a $65 price cuts the gain from $2,500 to $500 on 100 shares, saving $480 at 24%.

### Are short-term gains taxed at one rate?

No. They stack on top of ordinary income and can span two brackets. The calculator uses a single marginal rate as an approximation, which is accurate when the gain fits inside one bracket.

### Do I need to pay estimated tax on a large gain?

Usually yes if withholding will not cover it. A $1,500 gain produces only $360 of tax, but a $150,000 gain can create a five-figure bill and an underpayment penalty if nothing is paid quarterly.

## Method and sources

Methodology: Calculations follow standard financial mathematics (amortization, compound interest and time-value formulas) and reference 2026 U.S. federal parameters, such as IRS mileage and contribution rates, where applicable.

Last updated: 2026-11-18.
- Short-term capital gains are taxed at ordinary income tax rates; gain equals (sale price minus basis) times shares.
