onlinecalculator.me

The math behind compound interest and how it builds wealth

Learn the mechanics of compound interest. We break down the standard formula, explain how monthly contributions accelerate your savings, and show why compounding frequency matters for your financial goals.

Jun 18, 2026 5 min read

A close-up of a calculator next to a growing stack of gold coins on a wooden desk.

Compound interest is simply interest you earn on your interest. When you put money in a savings account or an investment, your starting balance earns a certain percentage over time. If you leave those earnings in the account, the next time interest is calculated, it is based on that new, larger total. The longer you leave the money alone, the faster the balance grows.

The intuition behind compounding

To see how this works, ignore the formulas for a minute and look at the math year by year. Imagine you deposit $10,000 into an account paying a 7% annual interest rate. You leave it alone. You do not add another dime.

At the end of year one, you earn $700 in interest. Your balance is now $10,700.

In year two, you do not just earn another flat $700. You earn 7% on the new balance of $10,700. That equals $749. Your total ticks up to $11,449.

YearStarting BalanceInterest EarnedEnd Balance
1$10,000.00$700.00$10,700.00
2$10,700.00$749.00$11,449.00
3$11,449.00$801.43$12,250.43

By year ten, your balance crosses $19,600. The interest payments themselves get larger every single year. That accelerating growth curve is the entire point of compounding. Over time, your money starts doing the heavy lifting for you.

The standard formula

If you make a single, lump-sum deposit and let it sit, the math is straightforward. The standard formula for compound interest is:

A = P × (1 + r ÷ n)^(n × t)

Let’s break down what those letters mean: A: The final amount, or your ending balance. P: The principal. This is your initial starting deposit. r: The annual interest rate, written as a decimal. A 7% rate becomes 0.07. n: The compounding frequency, or the number of times per year the bank calculates the interest and adds it to your balance. t: The time the money is invested, measured in years.

Suppose you start with $5,000 (P), earning 6% annually (r = 0.06). The bank compounds the interest monthly (n = 12), and you plan to leave it there for 5 years (t = 5).

First, divide the annual rate by the frequency to find your period rate: 0.06 ÷ 12 = 0.005. Next, figure out the total number of compounding periods over the life of the investment: 12 months × 5 years = 60 periods. Now, add 1 to the period rate and raise it to the power of 60: 1.005^60. This gives you roughly 1.3488. Finally, multiply that result by your starting principal: $5,000 × 1.3488 = $6,744.

Without doing anything else, your $5,000 grew by $1,744 in pure interest.

Adding monthly contributions

That standard formula works perfectly if you drop a pile of cash in an account and walk away. Real life rarely looks like that. Most people save by funneling a bit of money from every paycheck into an account.

When you deposit money monthly, the math requires an extra step. Every individual deposit has a different amount of time to grow. The money you contribute in year one has a decade to compound, while the money you add in year nine only gets a few months.

To handle this accurately, financial software converts your annual rate into an effective monthly rate. The formula for that conversion looks like this:

r_monthly = (1 + r ÷ n)^(n ÷ 12) − 1

Once you establish the effective monthly rate, the calculation steps through the timeline month by month. First, your existing balance earns interest for that specific month. Then, your new monthly contribution is added to the pile at the end of the month. When the calendar flips, the new, larger balance earns interest again.

Let’s look at a realistic scenario. You start with $10,000 at 7% annually, compounded monthly. You also add $500 at the end of every month for 10 years.

Your effective monthly rate works out to approximately 0.5833%. After 10 years, or 120 months, your final balance reaches about $96,762.

Over that decade, your out-of-pocket contributions equal $70,000. That is your initial $10,000 plus 120 payments of $500. Your total interest earned is roughly $26,762.

Regular contributions act like fuel. When combined with compound interest, more than a quarter of your final balance is pure interest. That money comes entirely from mathematical growth, not your wallet.

How compounding frequency matters

In the formulas above, the variable “n” dictates how often the bank or investment account tallies up your interest and adds it to your principal. You will usually see frequencies listed as annual, quarterly, monthly, or daily.

More frequent compounding means interest accrues on interest more often. Daily compounding produces slightly more money than monthly compounding. Monthly beats quarterly, and quarterly beats annual.

The actual difference in dollars is usually small unless you are dealing with massive numbers, high interest rates, or very long time horizons. For example, if you earn a 7% return over 30 years, daily compounding adds about 0.3% to your final balance compared to annual compounding. It is a slight edge, but it is not going to double your money on its own.

A standard savings account typically compounds daily or monthly. Broad investment portfolios, like index funds, compound continuously as dividends are paid out and reinvested. When modeling your own savings, check your account terms and pick the frequency that matches.

The flip side of compounding

The exact same math applies to borrowing money. Compound interest builds your wealth in a savings or retirement account, but it works aggressively against you when you carry debt.

A loan calculator or a mortgage calculator relies on the same underlying mechanics. The only difference is who gets paid. Instead of earning interest on your balance, the lender charges you interest on the money you owe. If you miss a payment or only pay the minimum on a credit card, the unpaid interest gets added to your principal. Next month, you pay interest on that interest.

Understanding how this works is a practical step toward setting realistic financial goals. Running the numbers shows you exactly how much heavy lifting the interest is doing in a savings account, and exactly why paying down high-interest debt quickly is so critical. A slight increase in your monthly contribution can completely change the math over a decade.

To run your own numbers, try out the Compound Interest Calculator.

What is the standard formula for compound interest?
The standard formula is A equals P times 1 plus r divided by n, all raised to the power of n times t. In this equation, A is your final amount and P is your starting principal. The variables r, n, and t represent the interest rate, compounding frequency, and time in years.
Does compounding frequency make a big difference?
More frequent compounding means interest accrues on interest more often, giving you a slightly higher return. Daily compounding produces more money than monthly or annual compounding. However, the actual difference in dollars is usually small unless you are dealing with massive numbers or very long time horizons.
How does compound interest affect debt?
The exact same compounding math applies to borrowing money, but it works against you. Instead of earning interest on your balance, the lender charges you interest on the money you owe. If you miss a payment, the unpaid interest gets added to your principal, meaning you pay interest on that interest next month.
Compound Interest Calculator Open the calculator →

← All articles