Skip to content

Calculadora de Impuesto sobre Ganancias de Capital

Calculadora gratuita de impuesto sobre ganancias de capital - calcula y compara opciones al instante. Sin registro.

Cargando calculadora

Preparando Calculadora de Impuesto sobre Ganancias de Capital...

Revisión y Metodología

Cada calculadora utiliza fórmulas estándar de la industria, validadas con fuentes oficiales y revisadas por un profesional financiero certificado. Todos los cálculos se ejecutan de forma privada en su navegador.

Última revisión:

Revisado por:

Escrito por:

Como Usar la Calculadora de Impuesto sobre Ganancias de Capital

  1. 1. Ingresa tus valores - completa los campos de entrada con tus numeros.
  2. 2. Ajusta la configuracion - usa los controles deslizantes y selectores para personalizar tu calculo.
  3. 3. Ve los resultados al instante - los calculos se actualizan en tiempo real a medida que cambias los datos.
  4. 4. Compara escenarios - ajusta los valores para ver como los cambios afectan tus resultados.
  5. 5. Comparte o imprime - copia el enlace, comparte los resultados o imprime para tus registros.

Capital Gains Tax Calculator

When you sell a stock, piece of real estate, or other investment for more than you paid, the profit is a capital gain — and the IRS taxes it. This calculator estimates your federal capital gains tax by taking your purchase price (cost basis), sale price, holding period, and taxable income. It shows your gain, applicable tax rate, estimated tax owed, and net proceeds after federal tax. Capital gains treatment varies dramatically based on how long you held the asset, so knowing the rate before you sell can change your timing decision.

How Capital Gains Tax Is Calculated

The starting point is always the same: Capital Gain = Sale Price - Cost Basis. What happens next depends on your holding period:

  • Short-term gain (held 1 year or less): taxed as ordinary income at your marginal rate (10%, 12%, 22%, 24%, 32%, 35%, or 37%)
  • Long-term gain (held more than 1 year): taxed at preferential rates of 0%, 15%, or 20% based on taxable income
  • Net Investment Income Tax (NIIT): an additional 3.8% applies to investment income when modified AGI exceeds $200,000 single / $250,000 married filing jointly
  • Depreciation recapture: for rental or business property, depreciation previously deducted is recaptured at a 25% rate, separate from the long-term gain rate

For 2026, the long-term capital gains brackets for single filers are approximately: 0% on income up to $48,350; 15% on income up to $533,400; 20% above that.

Worked Examples

Scenario 1 — Stock held less than a year: An investor bought 100 shares of a tech stock at $85/share ($8,500 total) and sold them 8 months later at $130/share ($13,000 total). Gain = $4,500. Short-term gain taxed at the investor’s 22% ordinary income rate. Federal tax = $990. Net proceeds after federal tax = $12,010. If they had waited four more months past the one-year mark, the same $4,500 gain at a 15% long-term rate would cost only $675 — saving $315.

Scenario 2 — Primary home sale: A couple bought a home for $310,000 in 2019 and sold it for $550,000 in 2026. Gross gain = $240,000. The married filing jointly exclusion is $500,000 under Section 121. Since they lived there as their primary residence for more than 2 of the last 5 years, the full $240,000 gain is excluded. Federal tax = $0.

Scenario 3 — Rental property sale: An investor bought a rental property for $200,000 in 2015, claimed $40,000 in depreciation over 10 years, and sold it for $380,000 in 2026. Adjusted cost basis = $200,000 - $40,000 = $160,000. Total gain = $220,000. Depreciation recapture on $40,000 at 25% = $10,000. Remaining long-term gain of $180,000 at 15% = $27,000. NIIT of 3.8% on $220,000 = $8,360. Total federal tax = $45,360.

Reference Table

ScenarioCost BasisSale PriceGainHoldingRateEst. Federal Tax
Stock — short-term, 22% bracket$8,500$13,000$4,5008 months22%$990
Stock — short-term, 32% bracket$20,000$35,000$15,00011 months32%$4,800
Stock — long-term, 0% bracket$5,000$12,000$7,0003 years0%$0
Stock — long-term, 15% bracket$10,000$15,000$5,0002 years15%$750
Stock — long-term, 20% bracket$50,000$120,000$70,0005 years20%$14,000
Home sale — exclusion applies$310,000$550,000$240,0007 years0%$0
Home sale — partial exclusion$200,000$700,000$500,0008 years15%$37,500
Rental property (+ recapture)$160,000$380,000$220,00010 years15%+25%$45,360
Crypto — short-term, 24%$15,000$28,000$13,0007 months24%$3,120
Crypto — long-term, 15%$15,000$28,000$13,00018 months15%$1,950

When to Use

  • Before selling a stock or investment property, to compare the tax cost of selling now versus waiting past the one-year mark for long-term treatment
  • Planning a year-end tax-loss harvest — quantify how much gain you need to offset before selling losing positions
  • Evaluating whether to use the primary residence exclusion on a home you have lived in, or whether it makes sense to delay a sale to qualify
  • Estimating net proceeds from an investment sale so you know exactly how much you will have left after the IRS takes its share
  • Deciding between FIFO, specific identification, or average cost basis methods for stock sales to minimize the gain recognized

Common Mistakes

  1. Forgetting the holding period down to the exact day. Long-term treatment requires holding more than 365 days — not “about a year.” Selling at 364 days means paying ordinary income rates. For large gains, double-check the exact purchase date before scheduling a sale.
  2. Using the original purchase price as cost basis for inherited assets. Inherited assets typically receive a “stepped-up” basis equal to the fair market value on the date of death. Using the decedent’s original purchase price instead massively overstates your taxable gain.
  3. Ignoring state capital gains tax. This calculator covers federal tax only. California taxes capital gains as ordinary income at up to 13.3%. New York adds up to 10.9% state plus city tax. Your actual after-tax proceeds can be 10-15 percentage points lower than the federal calculation alone.
  4. Overlooking depreciation recapture on rental property. Many landlords are surprised to learn that depreciation they deducted over the years is recaptured at 25% when the property is sold — separate from the standard long-term capital gains rate on the remaining appreciation. Always calculate these two components separately.

Current Context for 2026

Long-term capital gains rates are unchanged from prior years. The 0% bracket threshold has increased modestly with inflation adjustments — single filers with taxable income below approximately $48,350 owe zero federal tax on long-term gains, making this bracket worth targeting for lower-income years. The primary residence exclusion ($250,000 single / $500,000 married) has not been adjusted for inflation since it was set in 1997, meaning it covers a smaller share of appreciation in high-cost markets like San Francisco, New York, and Boston where prices have risen sharply. Cryptocurrency is treated as property by the IRS — each sale or swap is a taxable event, and short-term crypto gains are taxed as ordinary income, which catches many investors off guard. Estate tax exemption is $13.99 million per person in 2026, meaning stepped-up basis on inherited assets remains widely available.

Tips

  1. Hold investments for at least one year and one day from the purchase date — at a 22% income bracket, shifting a $20,000 gain from short-term to long-term saves $1,400 in federal tax
  2. In years when your income is unusually low (career break, major deductions, retirement transition), review your long-term gain exposure against the 0% bracket ceiling and consider realizing gains that year
  3. Use tax-loss harvesting to offset gains dollar-for-dollar, but observe the 30-day wash-sale rule — repurchasing a substantially identical security within 30 days before or after the sale disallows the loss
  4. For donated appreciated assets held more than one year, you avoid capital gains entirely and deduct the full fair market value, making donation often more tax-efficient than selling and donating cash
  5. On rental property sales, get a depreciation schedule from your accountant before listing — knowing the recapture amount upfront prevents surprises in net proceeds
  6. For stocks with lots purchased at different prices, use the specific identification method to sell the highest-cost shares first, minimizing the taxable gain recognized in the current year
  • Tax Calculator — estimate your full federal income tax including how capital gains stack on top of ordinary income
  • Self-Employment Tax Calculator — if you also have business or freelance income, see how SE tax interacts with investment gains
  • Profit Margin Calculator — for business asset sales, understand the margin on the original investment relative to the tax cost of exiting

Preguntas Frecuentes

¿Cuál es la diferencia entre las tasas de impuesto sobre ganancias de capital a corto y largo plazo?
Las ganancias de capital a corto plazo se aplican a activos mantenidos por un año o menos y se gravan como ingreso ordinario a tu tasa impositiva federal regular, que puede llegar hasta el 37%. Las ganancias de capital a largo plazo se aplican a activos mantenidos por más de un año y se gravan a tasas preferenciales de 0%, 15% o 20% dependiendo de tu ingreso gravable. Para 2024, los contribuyentes solteros pagan 0% sobre ganancias a largo plazo si el ingreso gravable es inferior a $47,025, 15% hasta $518,900, y 20% por encima de eso. Esta diferencia significa que mantener una inversión solo un día más después de la marca de un año puede ahorrarte miles en impuestos.
¿Cómo calculo mi base de costo para acciones o bienes raíces?
La base de costo es el precio original de compra más cualquier costo adicional como comisiones de corretaje, tarifas de transferencia o mejoras (para bienes raíces). Para acciones, si reinvertiste los dividendos, cada reinversión se suma a tu base. Para activos heredados, la base generalmente se 'ajusta al alza' al valor justo de mercado en la fecha del fallecimiento del difunto. Para bienes raíces, agrega el costo de mejoras permanentes (techo nuevo, remodelación de cocina) pero no el mantenimiento rutinario. Una base de costo precisa es crucial porque reduce directamente tu ganancia gravable.
¿Qué es la cosecha de pérdidas fiscales y cómo puede reducir mi impuesto sobre ganancias de capital?
La cosecha de pérdidas fiscales es la estrategia de vender inversiones con pérdida para compensar las ganancias de capital de otras inversiones. Puedes usar las pérdidas de capital para compensar ganancias dólar por dólar, y si tus pérdidas superan tus ganancias, puedes deducir hasta $3,000 de pérdidas netas contra ingresos ordinarios por año, trasladando cualquier pérdida restante a años futuros. Ten en cuenta la regla de venta ficticia (wash-sale rule): si compras un valor sustancialmente idéntico dentro de los 30 días antes o después de vender con pérdida, el IRS no permite la deducción de la pérdida.
¿Existen exenciones del impuesto sobre ganancias de capital?
La exención más significativa es la exclusión de residencia principal bajo la Sección 121. Si has sido propietario y vivido en tu casa durante al menos 2 de los últimos 5 años, puedes excluir hasta $250,000 de ganancia ($500,000 para parejas casadas que declaran conjuntamente) del impuesto sobre ganancias de capital. Los activos mantenidos en cuentas con ventajas fiscales como 401(k) e IRA no están sujetos al impuesto sobre ganancias de capital cuando se venden dentro de la cuenta, aunque las distribuciones se gravan de manera diferente. Las donaciones de activos apreciados a organizaciones benéficas también pueden evitar las ganancias de capital por completo mientras proporcionan una deducción caritativa.
¿Cómo declaro las ganancias de capital en mi declaración de impuestos?
Las ganancias y pérdidas de capital se reportan en el Anexo D (Schedule D) del Formulario 1040, con los detalles de cada transacción individual listados en el Formulario 8949. Tu casa de bolsa te enviará el Formulario 1099-B mostrando los ingresos de cada venta. Debes hacer coincidir cada venta con su base de costo y período de tenencia. Las ganancias netas a corto y largo plazo se calculan por separado y luego se combinan en el Anexo D. Si tienes ganancias de bienes raíces, también podrías necesitar el Formulario 4797 para propiedades comerciales o la hoja de cálculo de exclusión de residencia principal. Conserva todos los registros de compra durante al menos 3 años después de presentar la declaración.
Calculadoras