Compound interest

Calculate compound interest and final amount with principal, rate, and periods.

{{ compoundInterest.message }}

Overview

The quote often attributed — probably apocryphally — to Einstein sums it up perfectly: compound interest is the eighth wonder of the world; he who understands it, earns it; he who does not, pays it. The mathematical foundation of that observation was discovered by Swiss mathematician Jacob Bernoulli in 1683: while studying interest with progressively smaller compounding intervals, he noticed that the accumulated amount converged to a precise limit. That limit is e ≈ 2.71828, the base of natural logarithms, later formalized by Euler. A compound interest calculator, in other words, quietly contains one of the most fundamental constants in all of mathematics.

The formula A = P × (1 + r)^n is deceptively simple. At a 15% monthly rate — the average revolving credit card rate in Brazil — a debt of R$ 1,000 climbs to roughly R$ 5,350 in just 12 months without a single payment. That is the dark side of compounding. The bright side is the same exponential logic working in your favor: the Rule of 72 tells you that dividing 72 by the annual rate gives the approximate number of years it takes to double your money. At 9% per year your investment doubles in 8 years; at 3%, it takes 24.

Compound interest powers virtually every serious financial product: Treasury bonds, certificates of deposit, savings accounts, mutual funds, and real-estate mortgages. This calculator solves A = P × (1 + r)^n and also breaks down the total interest earned (or owed) separately from the principal, giving you a clear picture of how much of the final amount is actually growth — or cost. Use it to project long-term investment growth, compare loan offers with different rates and terms, or finally understand why revolving credit card debt feels like it never goes down.

Technical deep dive

Common questions summarized

  • What is this tool for?: It runs fully in your browser: useful to validate, format, or convert data in everyday development.
  • Are my inputs sent to a server?: Processing happens locally with JavaScript. We do not store what you paste into the text areas.
  • Can I use this for real production data?: Use at your own risk. For secrets (passwords, tokens), prefer controlled environments and your company policies. And always review the generated contents. Never trust blindly things you see on the internet.

Sample payload to try

  • See also the larger "Code Snippets" sample; paste this excerpt to try locally: Example — Principal: 1000 Taxa: 2% Períodos: 12 Montante: 1268.24

Code Snippets

Code example
Principal: 1000
Taxa: 2%
Períodos: 12
Montante: 1268.24

Example

Principal: 1000
Taxa: 2%
Períodos: 12
Montante: 1268.24

FAQ

What is this tool for?

It runs fully in your browser: useful to validate, format, or convert data in everyday development.

Are my inputs sent to a server?

Processing happens locally with JavaScript. We do not store what you paste into the text areas.

Can I use this for real production data?

Use at your own risk. For secrets (passwords, tokens), prefer controlled environments and your company policies. And always review the generated contents. Never trust blindly things you see on the internet.