Capital losses can offset capital gains — this calculator only models a gain, not a loss-harvesting scenario.
Your Recent & Past Results
Restored a past calculation.
Compare Calculations
Side-by-Side Comparison
A comparison of your calculations' results.
Downloads
Includes your inputs and results for this calculation, plus any additional calculations you've compared.
Share & Print
The link includes your inputs and results, so anyone who opens it sees this exact calculation.
Good to Know
Long-term rates here use a single marginal bracket based on your taxable income, a simplification of how a large gain can actually stack across more than one bracket. Federal rates and thresholds only -- this does not include state capital gains taxes, the Net Investment Income Tax surtax, or capital-loss offsetting, and the bracket thresholds themselves are adjusted annually.
Disclaimer
This calculator provides estimates for informational purposes only and does not constitute financial, medical, legal, or tax advice. Always consult a qualified professional about your specific situation.
How Capital Gains Tax Is Calculated
The tax you owe on an investment gain depends heavily on how long you held the asset
before selling. Assets held one year or less generate short-term gains, taxed as
ordinary income; assets held more than one year generate long-term gains, taxed at lower
preferential federal rates of 0%, 15%, or 20% depending on your taxable income. Enter your
purchase price, sale price, holding period, and income, and this calculator estimates the
tax owed under whichever treatment applies.
This is separate from your regular federal income tax — see the Income Tax Calculator for
that.
The Formula
Capital Gain=Sale Price−Purchase Price
For a short-term gain (held 12 months or less):
Tax Owed=Capital Gain×Ordinary Rate
For a long-term gain (held more than 12 months), the tax uses whichever long-term rate
bracket your taxable income falls into:
Tax Owed=Capital Gain×Long-Term Rate (0%, 15%, or 20%)
Worked Example
A $10,000 purchase sold for $15,000 after 18 months, with $70,000 in
taxable income (single filer):
Capital gain: 15,000−10,000=5,000.
Held more than 12 months, so this is a long-term gain.
$70,000 taxable income falls into the 15% long-term rate bracket for a single filer.
Tax owed: 5,000×15%=750.
Net proceeds after tax: 5,000−750=4,250.
Interpreting Your Results
The “tax owed” figure is an estimate of the federal capital gains tax on this one sale,
not a full tax return — you (or your tax software) will still report the actual sale on
IRS Form 8949 and Schedule D when you file, where it combines with every other capital
transaction for the year, any capital losses, and the rest of your income. Use this number
for planning purposes: deciding whether to set cash aside for the tax bill, whether the
timing of a sale is worth adjusting, or whether a large gain this year is worth discussing
with a tax professional before it happens rather than after.
Key Factors to Consider
The Net Investment Income Tax can add an additional surtax for higher earners. Beyond the
regular capital gains rate, an additional 3.8% Net Investment Income Tax can apply to
investment income above certain income thresholds — this calculator doesn’t include that
surtax, so a high earner’s actual tax owed can be somewhat higher than the estimate shown.
Consult a tax professional if this may apply to you.
Tax-loss harvesting is a deliberate strategy some investors use to manage this. Selling a
losing investment specifically to offset a gain elsewhere in a portfolio is a legitimate,
common strategy for reducing the taxable amount of a gain — this calculator models a single
isolated gain, not a full-portfolio tax strategy.
Special asset categories can have their own different capital gains rules. Collectibles,
certain small-business stock, and real estate depreciation recapture, among others, follow
different rates or rules than the standard short-term/long-term framework this calculator
models — check IRS guidance for the specific asset type if it falls into one of these
categories.
State taxes on capital gains vary enormously — some states tax gains the same as ordinary
income, others not at all. This calculator covers federal tax only; your actual total tax
bill also depends heavily on which state you live in and how that state treats capital gains.
Common Mistakes
Selling just before the one-year mark. Selling an asset at 11 months instead of
waiting one more month to cross into long-term treatment can mean paying a
substantially higher tax rate on the same gain.
Forgetting state taxes. This calculator covers federal capital gains tax only —
many states also tax capital gains, often at the same rate as ordinary income.
Ignoring capital losses. Losses elsewhere in a portfolio can offset gains, reducing
the actual tax owed below a simple gain-times-rate estimate.
Useful to Know
A large capital gain realized mid-year can trigger a quarterly estimated tax payment
requirement, not just a bigger bill at filing time. The U.S. tax system is pay-as-you-go —
if the tax withheld from your paycheck and any estimated payments you’ve made fall short of
what you owe by enough, the IRS can charge an underpayment penalty even if you pay the full
balance by the April filing deadline. Selling an investment for a large gain is one of the
more common ways this catches people by surprise, since there’s no automatic withholding on
a stock or property sale the way there is on a paycheck.
Cómo se calcula el impuesto sobre las ganancias de capital
El impuesto que debe sobre una ganancia de inversión depende en gran medida de
cuánto tiempo mantuvo el activo antes de venderlo. Los activos mantenidos un año
o menos generan ganancias a corto plazo, gravadas como ingreso ordinario; los
activos mantenidos más de un año generan ganancias a largo plazo, gravadas a
tasas federales preferenciales más bajas de 0%, 15% o 20% según su ingreso
imponible. Ingrese su precio de compra, precio de venta, período de tenencia e
ingreso, y esta calculadora estima el impuesto adeudado según el tratamiento
aplicable.
Ganancia de capital=Precio de venta−Precio de compra
Para una ganancia a corto plazo (mantenida 12 meses o menos):
Impuesto adeudado=Ganancia de capital×Tasa ordinaria
Para una ganancia a largo plazo (mantenida más de 12 meses), el impuesto usa el
tramo de tasa a largo plazo en el que cae su ingreso imponible:
Impuesto adeudado=Ganancia de capital×Tasa a largo plazo (0%, 15% o 20%)
Ejemplo resuelto
Una compra de $10,000 vendida por $15,000 después de 18 meses, con
$70,000 de ingreso imponible (declarante soltero):
Ganancia de capital: 15,000−10,000=5,000.
Mantenida más de 12 meses, por lo que esta es una ganancia a largo plazo.
El ingreso imponible de $70,000 cae dentro del tramo de tasa a largo plazo
del 15% para un declarante soltero.
Impuesto adeudado: 5,000×15%=750.
Ingresos netos después de impuestos: 5,000−750=4,250.
Cómo interpretar tus resultados
La cifra de “impuesto adeudado” es una estimación del impuesto federal sobre ganancias de
capital para esta venta en particular, no una declaración de impuestos completa — usted (o su
software de impuestos) igualmente deberá reportar la venta real en el Formulario 8949 y el
Anexo D del IRS al declarar, donde se combina con cualquier otra transacción de capital del año,
las pérdidas de capital y el resto de sus ingresos. Use esta cifra con fines de planificación:
para decidir si debe apartar efectivo para la factura de impuestos, si vale la pena ajustar el
momento de una venta, o si una ganancia grande este año merece consultarse con un profesional de
impuestos antes de que ocurra, no después.
Factores Clave a Considerar
El Impuesto sobre Ingresos Netos de Inversión puede agregar un impuesto adicional para
quienes ganan más. Además de la tasa regular de ganancias de capital, un Impuesto sobre
Ingresos Netos de Inversión adicional del 3.8% puede aplicarse al ingreso de inversión por
encima de ciertos umbrales de ingreso — esta calculadora no incluye ese impuesto adicional, así
que el impuesto real adeudado por alguien con altos ingresos puede ser algo más alto que la
estimación mostrada. Consulte a un profesional de impuestos si esto puede aplicarle.
La cosecha de pérdidas fiscales es una estrategia deliberada que algunos inversores usan para
manejar esto. Vender una inversión con pérdidas específicamente para compensar una ganancia en
otra parte de una cartera es una estrategia legítima y común para reducir el monto imponible de
una ganancia — esta calculadora modela una sola ganancia aislada, no una estrategia fiscal de
cartera completa.
Las categorías de activos especiales pueden tener sus propias reglas distintas de ganancias
de capital. Los coleccionables, ciertas acciones de pequeñas empresas y la recuperación de
depreciación de bienes raíces, entre otros, siguen tasas o reglas distintas al marco estándar de
corto/largo plazo que modela esta calculadora — consulte la guía del IRS para el tipo de activo
específico si cae en una de estas categorías.
Los impuestos estatales sobre las ganancias de capital varían enormemente — algunos estados
gravan las ganancias igual que el ingreso ordinario, otros no las gravan en absoluto. Esta
calculadora cubre solo el impuesto federal; su factura de impuestos total real también depende
en gran medida del estado en el que viva y de cómo ese estado trate las ganancias de capital.
Errores comunes
Vender justo antes de la marca de un año. Vender un activo a los 11 meses
en lugar de esperar un mes más para cruzar hacia el tratamiento a largo plazo
puede significar pagar una tasa impositiva sustancialmente más alta sobre la
misma ganancia.
Olvidar los impuestos estatales. Esta calculadora cubre solo el impuesto
federal sobre ganancias de capital — muchos estados también gravan las
ganancias de capital, a menudo a la misma tasa que el ingreso ordinario.
Ignorar las pérdidas de capital. Las pérdidas en otras partes de una
cartera pueden compensar las ganancias, reduciendo el impuesto realmente
adeudado por debajo de una simple estimación de ganancia multiplicada por
la tasa.
Vale la pena saber
Una ganancia de capital grande realizada a mitad de año puede activar un requisito de pago de
impuestos estimados trimestrales, no solo una factura más grande al declarar. El sistema
tributario de EE. UU. funciona sobre la marcha (“pay-as-you-go”) — si el impuesto retenido de su
sueldo y cualquier pago estimado que haya hecho quedan lo suficientemente por debajo de lo que
debe, el IRS puede cobrar una multa por pago insuficiente incluso si paga el saldo completo antes
de la fecha límite de abril. Vender una inversión con una ganancia grande es una de las formas
más comunes en que esto sorprende a la gente, ya que no hay retención automática en la venta de
una acción o una propiedad como sí la hay en un sueldo.
What's the difference between short-term and long-term capital gains?
Short-term gains (assets held one year or less) are taxed as ordinary income, at your regular marginal tax rate. Long-term gains (held more than one year) qualify for lower preferential rates of 0%, 15%, or 20% depending on your taxable income — the exact reason many investors deliberately hold an asset past the one-year mark before selling.
How is my long-term capital gains rate determined?
Your long-term rate depends on your taxable income and filing status, not on the size of the gain itself. This calculator uses your entered taxable income to find the applicable bracket — a simplification, since a very large gain can technically push part of itself into a higher bracket.
Does this account for capital losses?
No — this calculator models a single gain in isolation. In practice, capital losses can offset capital gains (and even a limited amount of ordinary income), which would reduce the actual tax owed below what's shown here.
Does this include the Net Investment Income Tax surtax?
No -- an additional 3.8% Net Investment Income Tax can apply to investment income above certain income thresholds, on top of the regular capital gains rate. This calculator doesn't include that surtax, so a high earner's actual tax owed can be somewhat higher than the estimate shown. Consult a tax professional if this may apply to you.
Do special assets like collectibles follow the same capital gains rules?
Not always -- collectibles, certain small-business stock, and real estate depreciation recapture, among others, follow different rates or rules than the standard short-term/long-term framework this calculator models. Check IRS guidance for the specific asset type if it falls into one of these special categories.
Do I owe tax on a gain I haven't sold yet?
No -- an investment that has gone up in value but hasn't been sold is an unrealized gain, and unrealized gains aren't taxed. Capital gains tax only applies once you actually sell (or otherwise dispose of) the asset, which is why this calculator asks for a sale price, not just a current market value.
What counts as my cost basis (purchase price)?
Your cost basis is generally what you originally paid for the asset, plus certain costs like broker commissions or fees to acquire it -- not just the sticker price. For assets received as a gift or inheritance, or for investments where you've reinvested dividends, the real cost basis can be more complicated than a simple purchase price, so double-check your actual basis before filing if any of that applies.
Do I need to make estimated tax payments on a capital gain?
Possibly. Because there's no automatic withholding on an investment sale, a large gain realized during the year can leave you owing more than your existing withholding and estimated payments cover -- which can trigger an IRS underpayment penalty even if you pay the full balance by the filing deadline. Making a quarterly estimated payment for the quarter the sale happened in is the usual way to avoid that.
We use cookies for analytics and ads to help support this free site. You can accept all, or decline and we'll only use what's needed for the site to work.