Capital Gains Holding Period Calculator

See whether your gain is short-term or long-term, and what you'll owe.

How it is calculated

The tool takes prices and a day count, not dates. gain = sale_price − purchase_price. The holding period is long-term when holding_period_days is greater than 365; 365 days or fewer is short-term. It then picks the matching rate you typed and computes tax = max(gain, 0) × rate ÷ 100 and net_after_tax = gain − tax. A loss produces a negative gain, $0.00 tax and a net equal to the loss; it does not model offsetting losses against other gains. Both rates are your own percentages, because the correct rate depends on country, year and your total income; the 365-day cut-off is built in and may not match your jurisdiction. Fees, cost-basis adjustments and surtaxes are not included. Negative prices or days, and rates below 0 or above 100, return no result.

Worked example

You bought shares for $10,000 and sold them for $14,000 after 400 days. Your short-term rate is 24% and your long-term rate is 15% (example rates). Gain: 14,000 − 10,000 = $4,000.00. Since 400 is more than 365, the sale counts as long-term, so the 15% rate applies. Tax owed: 4,000 × 15% = $600.00. Net after tax: 4,000 − 600 = $3,400.00.

At exactly 365 days the same sale would be short-term and cost $960.00.

Try this example →

Common mistakes

  • Entering a long-term rate in both rate boxes. The boxes are separate on purpose: the short-term rate is used for 365 days or fewer, and the long-term rate above that.
  • Counting from the wrong day. The tool needs the number of days between purchase and sale, and exactly 365 days is still short-term here, so one extra day changes the rate.
  • Entering the gain instead of the purchase and sale prices. Both fields are prices; the tool subtracts them itself.
  • Using the unit price instead of the total. For 100 shares enter the total paid and the total received, not the price of one share.
  • Reading the figures for a loss as an error. A sale at $7,500 against a $10,000 purchase shows a gain of -$2,500.00, $0.00 tax and a net of -$2,500.00; whether that loss is deductible depends on your tax rules.
  • Typing a rate as a fraction such as 0.15 for 15%. The fields are percentages, and anything above 100 gives no result.

Sources

About this calculator

The capital gains holding period determines whether a profit from selling an asset is taxed as a short-term or long-term capital gain. Under U.S. federal tax rules, an asset held for one year or less generates a short-term gain, taxed at your ordinary marginal income tax rate (as high as 37% at the top federal bracket), while an asset held for more than one year qualifies for preferential long-term capital gains rates (0%, 15%, or 20% depending on taxable income) — a difference that can easily be worth thousands of dollars on the same profit.

Investors, traders, and tax preparers use this calculation to decide whether to hold an appreciated position a little longer to cross the one-year threshold before selling, a strategy sometimes explicitly planned around in year-end tax planning, since selling one day before the anniversary of purchase versus one day after can move the same dollar of gain from the top ordinary rate down to a much lower long-term rate.

This calculator takes your purchase price, sale price, the number of days you held the asset, and the short-term and long-term tax rates you enter yourself. It treats a holding period of more than 365 days as long-term, applies the matching rate to the gain, and returns the tax owed and the net amount after tax. It does not look up your bracket, so enter the rates that apply to you; if you only have dates, count the days between them first.

Was this helpful?

You can pick up to 3 reactions.

Comments

  • Be the first to comment.

Popular calculators

All Calculators