CDB vs Treasury Direct: Which Yields More in 2026?
If you have money saved or are starting to invest, you’ve likely encountered this question: should you put your money in a CDB or in Treasury Direct? Both are fixed-income investments, both have a good reputation among conservative and moderate investors, and both frequently appear on the shelves of banks and brokerages. But despite their surface similarities, they work quite differently — and understanding these differences is what will allow you to make more informed decisions.
The good news is that comparing CDB and Treasury Direct doesn’t require you to be a finance expert. With some clarity about how each works, what risks are involved, and how taxation affects net returns, you’ll already be ahead of most people. This article will guide you through this path objectively and without promises of miraculous gains — because serious investing doesn’t work that way.
Let’s be clear from the start: this content is educational. Rates like Selic and CDI change frequently, according to decisions by the Monetary Policy Committee (Copom). Therefore, instead of providing numbers that may become outdated, we’ll explain how each product works and guide you to consult official sources for the most current values.
What is Treasury Direct?
Treasury Direct is a federal government program, managed by the National Treasury in partnership with B3, that allows individuals to purchase government bonds online. In practice, when you invest in Treasury Direct, you are lending money to the Brazilian government and receiving interest in return.
The main available bonds are:
- Selic Treasury: yields according to the Selic rate, the economy’s basic interest rate. It’s the most recommended bond for those seeking liquidity and short-term security.
- Fixed-Rate Treasury: has an interest rate defined at the time of purchase, allowing you to know exactly how much you’ll receive if you hold the bond until maturity.
- IPCA+ Treasury: combines a fixed rate with inflation variation (IPCA), guaranteeing a real return. If you want to better understand this bond, check out our article Tesouro IPCA: o que é e como protege seu dinheiro.
The minimum investment in Treasury Direct is typically low — around R$ 30 to R$ 35 per bond, though this value may vary. Check the official Treasury Direct website for updated values.
What is CDB?
CDB (Bank Deposit Certificate) is a security issued by banks and financial institutions. When you buy a CDB, you’re also lending money — but this time to a private financial institution, not the government.
In return, the bank pays interest on the invested amount. The most common CDB profitability is expressed as a percentage of CDI (for example, “CDB at 100% of CDI” or “CDB at 110% of CDI”). CDI (Interbank Deposit Certificate) is a rate very close to Selic and serves as a reference for private fixed income. To check the current CDI value, visit the Central Bank of Brazil website.
CDBs vary considerably:
- Some have daily liquidity (you can redeem anytime).
- Others have a grace period, and redeeming early may mean loss of profitability or even penalties.
- Profitability depends on the issuing bank: smaller banks, with higher perceived risk, typically offer higher rates to attract investors.
How Does Taxation Work for Both?
Here’s an essential point that many people ignore: gross yield is not what you actually receive. Both CDB and Treasury Direct bonds are subject to Income Tax (IR) on returns, following the same regressive table from the Federal Revenue:
| Investment Period | IR Rate |
|---|---|
| Up to 180 days | 22.5% |
| 181 to 360 days | 20% |
| 361 to 720 days | 17.5% |
| Over 720 days | 15% |
In other words, the longer you maintain the investment, the lower the tax — and the higher the net return. This rule applies to both CDB and Treasury Direct (except Selic Treasury, which for very short-term redemptions may have an initial rate of 22.5%).
In addition to IR, Treasury Direct charges an annual custody fee collected by B3. Check the current value on the official website, as it may change. Some Treasury bonds also have IOF for redemptions in less than 30 days — the same applies to CDB.
CDB has no custody fee, but may have an administration fee depending on the platform. Always prefer platforms that charge zero for this type of product.
Safety: Who Protects Your Money?
This is a point where the two investments differ importantly.
- Treasury Direct: is guaranteed by the National Treasury, that is, by the federal government. It’s considered the country’s lowest-risk investment, as the risk is Brazil’s sovereign risk itself.
- CDB: is guaranteed by the FGC (Credit Guarantee Fund) up to a limit of R$ 250,000 per CPF per financial institution, with a global ceiling of R$ 1 million per CPF every four years. This means that if the bank fails, FGC reimburses the investor up to this limit. Check updated rules on the FGC website.
Practical conclusion: for amounts within the FGC limit, CDB from a solid bank offers security comparable to Treasury Direct. For amounts above this limit, Treasury Direct has an advantage in terms of protection.
Liquidity: When Can You Redeem?
Liquidity refers to the ease of converting the investment into cash in your account.
- Selic Treasury: has daily liquidity. You can sell the bonds on any business day and receive the money the next business day.
- Fixed-Rate Treasury and IPCA+ Treasury: can be sold before maturity, but the market price varies — you may receive more or less than you invested depending on the time of sale.
- CDB with daily liquidity: works similarly to Selic Treasury, with redemption available anytime.
- CDB without daily liquidity: requires you to wait for the agreed period. Early redemptions may not be allowed or may result in lower returns.
If you don’t know exactly when you’ll need the money, prefer options with daily liquidity.
So, Which Yields More?
That’s the central question — and the honest answer is: it depends.
See the factors that influence:
- CDI percentage: A CDB paying 115% of CDI will yield more than a CDB paying 90% of CDI — and possibly more than Selic Treasury in the same period. But a 90% CDI CDB from a large bank may yield less than Selic Treasury.
- Term: Regressive IR favors longer terms. The longer the money stays invested, the higher the rate that “remains” in your pocket.
- Inflation: If the goal is to protect purchasing power, IPCA+ Treasury offers a guarantee that Selic Treasury and many CDBs don’t: a positive real return, regardless of inflation.
- Custody fee: It slightly reduces the net return of Treasury Direct. For very short terms, this effect is more noticeable.
How to compare in practice: always compare net yield, deducting IR and fees. Many brokerages and Treasury Direct simulators make this calculation automatically.
How to Decide Between CDB and Treasury Direct?
There’s no single answer. What exist are criteria that help you choose according to your profile and objective:
- Define the purpose of the money: is it an emergency fund? A medium-term goal? Retirement? For emergency reserves, daily liquidity is essential.
- Check current rates: consult the Treasury Direct website and compare with CDBs available at your brokerage. Use simulators to compare net returns.
- Consider the term: for terms over two years, the IR rate drops to 15% — which improves the net return of both.
- Evaluate the invested amount: if over R$ 250,000, diversify among institutions or prefer Treasury Direct.
- Research the solidity of the CDB issuing bank: CDBs from smaller banks with higher rates may be worthwhile — as long as within the FGC limit and you understand the risk.
If the investment topic is still new to you, it’s worth expanding your knowledge about other markets too. Check out our article Bolsa de valores para iniciantes: como dar o primeiro passo to understand the world of variable income.
Conclusion

CDB and Treasury Direct are solid tools for those who want to invest with security and predictability. Neither is universally better — what exists are choices more or less suitable for each objective, term, and risk profile.
The most important thing is to always compare net yield, understand redemption conditions before investing, and not make decisions based solely on the announced gross rate. Information is the best investment you can make before any financial application.
All investments involve risks. Past performance does not guarantee future performance. Rates and conditions may change at any time.
> Educational note: This article is exclusively educational and informational in nature. It does not constitute investment recommendation, financial advice, or suggestion to purchase any specific product. For investment decisions appropriate to your profile and financial situation, consult a certified professional duly registered with CVM (Securities and Exchange Commission).
