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.
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
| Investment | Gross balance | Tax + fees | Net balance | Real value (today's R$) |
|---|---|---|---|---|
| CDB (110% of CDI) | R$ 13.228,45 | R$ 564,98 | R$ 12.663,47 | R$ 11.578,58 |
| Tax-free LCI / LCA (92% of CDI) ★ Highest net return | R$ 12.669,30 | R$ 0,00 | R$ 12.669,30 | R$ 11.583,91 |
| Tesouro Selic (100% CDI − B3) | R$ 12.916,32 | R$ 515,17 | R$ 12.401,15 | R$ 11.338,74 |
| Tesouro IPCA+ (6.5% p.a.) | R$ 12.404,99 | R$ 420,87 | R$ 11.984,12 | R$ 10.957,43 |
| Savings (Tax-free) | R$ 11.712,21 | R$ 0,00 | R$ 11.712,21 | R$ 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=…
| Parameter | Description | Default |
|---|---|---|
| valor | valor investido (R$) | 10000 |
| meses | prazo em meses | 24 |
| cdb | taxa do CDB (% do CDI) | 110 |
| lci | taxa da LCI/LCA (% do CDI) | 92 |
| ipcamais | taxa prefixada do Tesouro IPCA+ (fração, ex.: 0.065 = 6,5% a.a.) | 0.065 |
| cdi | CDI anual (fração) | CDI do BCB |
| ipca | IPCA 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
- Compensation ComparatorCompare CLT, PJ and cooperative models from an annual liquidity target.
- Net Salary Calculator 2026Brazilian CLT net salary with INSS, income tax (new exemption up to R$ 5k), dependents, transport voucher and the full annual package.
- Brazilian PJ Tax Calculator 2026Compare MEI, Simples Nacional (Annex III with Fator R and Annex V) and Lucro Presumido and see how much you keep.