Calculadora de juros compostos
Visualize como seus investimentos crescem ao longo do tempo com juros compostos e aportes regulares.
Parâmetros
Montante final
$292.5K
20 anos
Capital total
$130.0K
Lucro total
$162.5K
+125.0%
Curva de crescimento
Detalhamento anual
| Ano | Capital | Juros | Total |
|---|---|---|---|
| 1 | $16.0K | $890.00 | $16.9K |
| 2 | $22.0K | $2,263.00 | $24.3K |
| 3 | $28.0K | $4,151.00 | $32.2K |
| 4 | $34.0K | $6,592.00 | $40.6K |
| 5 | $40.0K | $9,623.00 | $49.6K |
| 6 | $46.0K | $13.3K | $59.3K |
| 7 | $52.0K | $17.6K | $69.6K |
| 8 | $58.0K | $22.7K | $80.7K |
| 9 | $64.0K | $28.5K | $92.5K |
| 10 | $70.0K | $35.2K | $105.2K |
| 11 | $76.0K | $42.8K | $118.8K |
| 12 | $82.0K | $51.3K | $133.3K |
| 13 | $88.0K | $60.8K | $148.8K |
| 14 | $94.0K | $71.4K | $165.4K |
| 15 | $100.0K | $83.1K | $183.1K |
| 16 | $106.0K | $96.2K | $202.2K |
| 17 | $112.0K | $110.5K | $222.5K |
| 18 | $118.0K | $126.3K | $244.3K |
| 19 | $124.0K | $143.5K | $267.5K |
| 20 | $130.0K | $162.5K | $292.5K |
Esta ferramenta resolveu o seu problema?
Exemplos de código
JavaScript
// Compound interest with monthly contributions
function compoundGrowth(P, r, n, t, pmt) {
// P = principal, r = annual rate (decimal)
// n = compounds/year, t = years, pmt = monthly contrib
const monthlyRate =
Math.pow(1 + r / n, n / 12) - 1;
let balance = P;
for (let y = 1; y <= t; y++) {
for (let m = 0; m < 12; m++) {
balance *= (1 + monthlyRate);
balance += pmt;
}
}
return balance;
}
// Example: $10k at 7%, 20 years, $500/mo
console.log(compoundGrowth(10000, 0.07, 1, 20, 500));
// → ~$284,428Python
def compound_growth(P, r, n, t, pmt=0):
"""
P = initial principal
r = annual rate (decimal, e.g. 0.07)
n = compounding frequency per year
t = years
pmt = monthly contribution
"""
monthly_rate = (1 + r / n) ** (n / 12) - 1
balance = P
for _ in range(t * 12):
balance *= (1 + monthly_rate)
balance += pmt
return balance
# $10,000 at 7% for 20 years + $500/mo
print(f"USD {compound_growth(10000, 0.07, 1, 20, 500):,.2f}")
# → USD 284,428.09Excel / Google Sheets
// Future Value formula (no contributions) =FV(rate/n, n*t, 0, -PV) // With monthly contributions (monthly compounding) // pmt = monthly payment, rate = annual rate =FV(rate/12, years*12, -pmt, -PV) // Example: $10k principal, 7% rate, 20 years // with $500/month contribution: =FV(7%/12, 20*12, -500, -10000) // → $284,428.09 // Rule of 72 — years to double: =72 / (rate * 100)
Go
package main
import (
"fmt"
"math"
)
func compoundGrowth(P, r float64, n, t int, pmt float64) float64 {
monthlyRate := math.Pow(1+r/float64(n), float64(n)/12) - 1
balance := P
for i := 0; i < t*12; i++ {
balance *= (1 + monthlyRate)
balance += pmt
}
return balance
}
func main() {
result := compoundGrowth(10000, 0.07, 1, 20, 500)
fmt.Printf("$%.2f\n", result) // $284,428.09
}Perguntas frequentes
O que são juros compostos?
Juros compostos significam obter retornos não apenas sobre o capital inicial, mas também sobre os juros já acumulados. Com o tempo, isso gera um crescimento exponencial — famosamente chamado por Einstein de «a oitava maravilha do mundo».
Como a frequência de capitalização afeta o crescimento?
Quanto mais frequentemente os juros são capitalizados (diariamente vs. anualmente), ligeiramente maior será o rendimento anual efetivo (APY). No entanto, a diferença é mínima — aumentar a taxa ou o prazo tem um impacto muito maior.
Qual taxa de retorno anual devo usar?
A média histórica do S&P 500 é de cerca de 10% nominal ao ano, ou aproximadamente 7% após a inflação. Para estimativas conservadoras, use 5–6%; para títulos ou poupança, 2–4% é mais realista.
Como os aportes regulares são calculados?
Os aportes mensais são adicionados no final de cada mês após o cálculo dos juros (fórmula do valor futuro de uma anuidade). Esta calculadora simula mês a mês para maior precisão.
Por que meu saldo cresce devagar no início?
Os juros compostos são um crescimento exponencial. Nos primeiros anos, seu saldo é majoritariamente capital; nos anos posteriores, os juros podem superar seus aportes. Por isso começar cedo é tão importante.
O que é a regra dos 72?
Divida 72 pela sua taxa de retorno anual para estimar quantos anos leva para dobrar seu dinheiro. Com 7%: 72 ÷ 7 ≈ 10,3 anos. Com 10%, cerca de 7,2 anos.