Calculadora de Ganho de Capital (ações, imóveis, cripto)

Calcule o IR sobre ganho de capital com alíquotas progressivas.
Created by
Renato Passos, Eng. de Software
Reviewed by
Renato Passos, Eng. de Software

Last updated: Apr 18, 2026

Ganho de capital
R$ 80.000,00
IR a pagar
R$ 12.000,00

Formula

Alíquotas: 15% (≤5M), 17,5% (≤10M), 20% (≤30M), 22,5% (>30M)

About this calculator

This calculator helps you determine the capital gains tax on the sale of stocks, real estate, or cryptocurrencies. It follows the progressive tax rates set by the Brazilian IRS: 15% for gains up to R$ 5 million, 17.5% for R$ 5 to 10 million, 20% for R$ 10 to 30 million, and 22.5% for gains above R$ 30 million. Simply enter the purchase and sale prices, and the tool automatically applies the correct rate.

How it works: the tool subtracts the acquisition cost from the sale price to get the taxable gain. Then it identifies the corresponding tax bracket and calculates the tax due. For stocks, note that losses can offset future gains. For real estate, there is a reduced rate for sales after 5 years (regressive table). For crypto, tax applies only if monthly gains exceed R$ 35 thousand.

When to use: ideal for individual investors selling assets at a profit who need to report capital gains on the Brazilian IRS GCAP system. Useful for tax planning before a sale, simulating the tax impact. Practical cases include selling stocks on the exchange, selling a rental property, or realizing crypto profits like Bitcoin or Ethereum.

Cautions: the calculator does not consider brokerage fees, exchange fees, or custody costs, which reduce taxable gain. For real estate, the rate may be reduced if the proceeds are used to buy another residential property within 180 days (Law 11.196/2005). Consult an accountant for complex cases like day-trading or foreign sales.

Frequently asked questions

How to calculate capital gains on stock sales?

Subtract the purchase price (including brokerage fees) from the sale price. If positive, apply the tax rate based on the gain bracket. Losses can offset future gains.

Is there a tax reduction for real estate sold after 5 years?

Yes, the rate is reduced by 0.5% per year of ownership from the second year, up to 10% after 20 years. The calculator does not apply this reduction automatically.

Are cryptocurrencies taxed as capital gains?

Yes, if monthly gains exceed R$ 35 thousand. Rates are the same as other assets. Losses can be offset.

Do I need to report capital gains on my income tax return?

Yes, capital gains must be reported on the Brazilian IRS GCAP system, even if exempt. Tax payment is made via DARF by the last business day of the month following the sale.

Other Impostos e Tributos Brasileiros calculators