Skip to content

Calculadora de Imposto sobre Ganhos de Capital

Calculadora gratuita de imposto sobre ganhos de capital - calcule e compare opcoes instantaneamente. Sem cadastro.

Carregando calculadora

Preparando Calculadora de Imposto sobre Ganhos de Capital...

Revisão e Metodologia

Cada calculadora utiliza fórmulas padrão da indústria, validadas por fontes oficiais e revisadas por um profissional financeiro certificado. Todos os cálculos são executados de forma privada no seu navegador.

Última revisão:

Revisado por:

Escrito por:

Como Usar a Calculadora de Imposto sobre Ganhos de Capital

  1. 1. Insira seus valores - preencha os campos de entrada com seus numeros.
  2. 2. Ajuste as configuracoes - use os controles deslizantes e seletores para personalizar seu calculo.
  3. 3. Veja os resultados instantaneamente - os calculos se atualizam em tempo real conforme voce altera os dados.
  4. 4. Compare cenarios - ajuste os valores para ver como as mudancas afetam seus resultados.
  5. 5. Compartilhe ou imprima - copie o link, compartilhe os resultados ou imprima para seus 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

Perguntas Frequentes

Qual e a diferenca entre as aliquotas de imposto sobre ganhos de capital de curto e longo prazo?
Ganhos de capital de curto prazo se aplicam a ativos mantidos por um ano ou menos e sao tributados como renda ordinaria na sua aliquota regular de imposto federal, que pode chegar a 37%. Ganhos de capital de longo prazo se aplicam a ativos mantidos por mais de um ano e sao tributados com aliquotas preferenciais de 0%, 15% ou 20%, dependendo da sua renda tributavel. Para 2024, contribuintes solteiros pagam 0% sobre ganhos de longo prazo se a renda tributavel for inferior a $47.025, 15% ate $518.900 e 20% acima disso. Essa diferenca significa que manter um investimento por apenas um dia a mais apos a marca de um ano pode economizar milhares em impostos.
Como calculo minha base de custo para acoes ou imoveis?
A base de custo e o preco original de compra mais quaisquer custos adicionais como comissoes de corretagem, taxas de transferencia ou melhorias (para imoveis). Para acoes, se voce reinvestiu dividendos, cada reinvestimento aumenta sua base. Para ativos herdados, a base e tipicamente 'atualizada' para o valor justo de mercado na data do falecimento. Para imoveis, adicione o custo de melhorias permanentes (telhado novo, reforma da cozinha), mas nao manutencao rotineira. Uma base de custo precisa e fundamental porque reduz diretamente seu ganho tributavel.
O que e tax-loss harvesting e como pode reduzir meu imposto sobre ganhos de capital?
Tax-loss harvesting e a estrategia de vender investimentos com prejuizo para compensar ganhos de capital de outros investimentos. Voce pode usar perdas de capital para compensar ganhos dolar por dolar, e se suas perdas excederem seus ganhos, pode deduzir ate $3.000 de perdas liquidas contra a renda ordinaria por ano, transferindo quaisquer perdas remanescentes para anos futuros. Fique atento a regra de wash-sale: se voce comprar um titulo substancialmente identico dentro de 30 dias antes ou depois de vender com prejuizo, o IRS nao permite a deducao da perda.
Existem isencoes do imposto sobre ganhos de capital?
A isencao mais significativa e a exclusao de residencia principal sob a Secao 121. Se voce foi proprietario e morou em sua casa por pelo menos 2 dos ultimos 5 anos, pode excluir ate $250.000 de ganho ($500.000 para casais com declaracao conjunta) do imposto sobre ganhos de capital. Ativos mantidos em contas com vantagens fiscais como 401(k)s e IRAs nao estao sujeitos ao imposto sobre ganhos de capital quando vendidos dentro da conta, embora as distribuicoes sejam tributadas de forma diferente. Doacoes de ativos valorizados para caridade tambem podem evitar ganhos de capital inteiramente, alem de fornecer uma deducao beneficente.
Como declaro ganhos de capital na minha declaracao de imposto de renda?
Ganhos e perdas de capital sao declarados no Schedule D do Formulario 1040, com detalhes de transacoes individuais listados no Formulario 8949. Sua corretora enviara o Formulario 1099-B mostrando os rendimentos de cada venda. Voce deve combinar cada venda com sua base de custo e periodo de detencao. Ganhos liquidos de curto e longo prazo sao calculados separadamente e depois combinados no Schedule D. Se voce tem ganhos de imoveis, tambem pode precisar do Formulario 4797 para propriedade comercial ou da planilha de exclusao de residencia principal. Guarde todos os registros de compra por pelo menos 3 anos apos a declaracao.
Calculadoras