Fixed Income Comparator: CDB vs LCI/LCA vs Treasury

Compare net returns across CDB, tax-exempt LCI/LCA, Tesouro Selic, Tesouro IPCA+ and Savings, and find the tax-equivalent rate for any holding period.

The link keeps what is on screen.
Parameters
Investment & rates
Tax equivalence for this term (17.5% income tax)

An LCI/LCA at 92% of CDI equals a CDB at 111.52% of CDI

A CDB at 110% of CDI equals an LCI/LCA at 90.75% of CDI

InvestmentGross balanceTax + feesNet balanceReal value (today's R$)
CDB (110% of CDI)R$ 13.228,45R$ 564,98R$ 12.663,47R$ 11.578,58
Tax-free LCI / LCA (92% of CDI) ★ Highest net returnR$ 12.669,30R$ 0,00R$ 12.669,30R$ 11.583,91
Tesouro Selic (100% CDI − B3)R$ 12.916,32R$ 515,17R$ 12.401,15R$ 11.338,74
Tesouro IPCA+ (6.5% p.a.)R$ 12.404,99R$ 420,87R$ 11.984,12R$ 10.957,43
Savings (Tax-free)R$ 11.712,21R$ 0,00R$ 11.712,21R$ 10.708,82
Variables used in the calculation

Official rules and tables

Fixed income tax (regressive)
22,5% → 20% → 17,5% → 15% · Lei 11.033/2004
Sustainable withdrawal
4% a.a.
How is it calculated?
Applies Brazil's regressive fixed-income tax table (Law 11.033/2004: 22.5% up to 6 months, 20% up to 12 months, 17.5% up to 24 months, 15% over 24 months) to CDB, Tesouro Selic and Tesouro IPCA+. LCI, LCA and Savings are tax-exempt for individuals.
See the code ↗

Processed in your browser; nothing is sent.

Use from the terminal (JSON)

This tool also runs outside the site: the cli.js script uses the same logic as this page and returns the result as JSON. Parameters are the same as this page's URL — copy the command below with the values on screen.

Deno
deno run -q "https://tools.thecodecodex.com/cli.js?tool=fixed-income"
Node.js / Bun
curl -s https://tools.thecodecodex.com/cli.js | node --input-type=module - fixed-income valor=…
ParameterDescriptionDefault
valorvalor investido (R$)10000
mesesprazo em meses24
cdbtaxa do CDB (% do CDI)110
lcitaxa da LCI/LCA (% do CDI)92
ipcamaistaxa prefixada do Tesouro IPCA+ (fração, ex.: 0.065 = 6,5% a.a.)0.065
cdiCDI anual (fração)CDI do BCB
ipcaIPCA anual (fração)IPCA 12m do BCB

Requires Deno, Node.js or Bun. With Deno the script runs with no permissions: it cannot read files or access the network. Central Bank indicators are from the day the site was published.

More in Finance