Daily compounding interest is calculated with the formula A = P × (1 + r/n)^(n × t), where P is the principal, r is the annual nominal rate expressed as a decimal, n is the number of compounding periods per year (365 for daily compounding, or 360 under some conventions), and t is the time in years; the interest earned is A − P.

That single sentence contains everything needed for the arithmetic, but most practical confusion arises before the arithmetic begins: whether the quoted rate is nominal or effective, whether the account uses 360 or 365 days, how partial years and leap years are handled, and whether deposits or withdrawals happen along the way. The answerable core is the compounding formula and how to apply it; the unknowns are the specific rate, day-count convention, and balance activity of any particular account, none of which can be assumed without the account's terms.

The Formula and What Each Term Means

The compound-interest formula grows a balance by applying the periodic rate repeatedly:

A — the ending amount, principal plus interest. P — the starting principal. r — the annual nominal interest rate, written as a decimal (5% becomes 0.05). "Nominal" means the rate before compounding is taken into account. n — compounding periods per year. Daily compounding generally means n = 365 (or 366 in a leap year, depending on the institution). t — time in years. Six months is t = 0.5; 90 days is t = 90/365 ≈ 0.2466 under a 365-day convention. A − P — the interest earned.

The exponent n × t is simply the total number of compounding periods. For one year at daily compounding, that is 365 periods; for two years, 730.

A Worked Example

Suppose you deposit $10,000 at a nominal annual rate of 5%, compounded daily, for one year (n = 365, t = 1):

Daily periodic rate: 0.05 / 365 ≈ 0.000136986. Growth factor: (1 + 0.000136986)^365. Compute the exponent: 365 × 1 = 365. (1.000136986)^365 ≈ 1.051267. A ≈ $10,000 × 1.051267 = $10,512.67. Interest earned ≈ $512.67.

Notice that the interest ($512.67) slightly exceeds 5% of the principal ($500). That gap is the effect of compounding: interest is earned on interest already credited during the year. The effective annual rate here is about 5.1267%, higher than the 5% nominal rate.

Extending to Multiple Years

For three years at the same terms: exponent = 365 × 3 = 1,095, and (1.000136986)^1,095 ≈ 1.16147, so A ≈ $11,614.70. The multi-year result is not three times the one-year interest, because each year's interest compounds on a larger base. This is why the formula uses an exponent rather than simple multiplication.

Nominal Versus Effective Rate: The Most Common Trap

The single largest source of error is confusing the advertised (nominal) annual percentage rate with the effective annual rate (EAR), sometimes called the annual percentage yield (APY) in U.S. savings contexts.

If an account advertises "5% APY," that figure already incorporates compounding. Feeding 0.05 into the formula as r with n = 365 would double-count the compounding and overstate the result. Conversely, if an account advertises "5% nominal, compounded daily," the formula above is correct, and the APY is higher (about 5.13%).

The relationship is:

EAR = (1 + r/n)^n − 1

For r = 0.05 and n = 365: EAR = (1.000136986)^365 − 1 ≈ 0.051267, or 5.1267%.

So the practical rule is: use the nominal rate in the compounding formula, and use the effective rate when you want a single number that already reflects compounding. In the United States, deposit accounts are generally required to disclose the APY, which is the effective figure—check which number you are holding before computing.

Day-Count Conventions: 360 Versus 365

"Daily" does not always mean 365. Some conventions, notably parts of the commercial and money-market world, use a 360-day year (the "actual/360" convention), and some use actual days in the period over a 365-day year (actual/365). The choice changes both the periodic rate and the number of periods.

With n = 360 and r = 0.05: periodic rate = 0.05/360 ≈ 0.000138889, and (1.000138889)^360 ≈ 1.05162, an EAR of about 5.162%—slightly higher than the 365-day result because each period is marginally larger and there are fewer of them, but the net effect is small.

For most consumer savings accounts in the U.S., the convention is daily compounding on the actual daily balance, credited monthly, with the disclosed APY already accounting for the year length. The formula and the convention should match: do not mix a 360-day periodic rate with a 365-day exponent.

Leap years introduce a further wrinkle. A 366-day year changes n and the exponent for that year. In practice, institutions handle this in their disclosed methodology, and the difference for a single year is tiny (on the order of a few cents per $10,000 at typical rates). For exact reconciliation of a statement, use the institution's stated day-count and crediting rules rather than a generic 365.

Partial Years and Non-Annual Periods

When t is not a whole number of years, the exponent n × t is generally fractional, and the formula still applies directly:

Six months (t = 0.5): exponent = 365 × 0.5 = 182.5; (1.000136986)^182.5 ≈ 1.02531, so $10,000 grows to about $10,253.10. 90 days under actual/365: t = 90/365 ≈ 0.246575; exponent = 365 × 0.246575 = 90, which is simply 90 daily periods. A = $10,000 × (1.000136986)^90 ≈ $10,012.40.

That second example illustrates a useful shortcut: if you know the number of compounding periods k directly, you can compute A = P × (1 + r/n)^k without converting to years. For 90 daily periods, k = 90. For 18 months, k ≈ 547.5 under a 365-day convention (the half-period reflects the fractional-year treatment; some institutions instead credit whole days only, which slightly changes the last few cents).

The shortcut also clarifies a subtlety: fractional exponents are mathematically well-defined for positive bases, but real accounts credit interest only at discrete intervals (daily, monthly). A fractional-period result is a mathematical interpolation, not necessarily an exact statement balance.

Handling Deposits and Withdrawals

The single-formula answer assumes a lump sum left untouched. Real accounts often receive deposits and withdrawals, and then the clean formula no longer applies directly. There are two defensible approaches:

  1. Segment the timeline. Break the history into intervals during which the balance is constant, and compound each segment separately, carrying the ending balance into the next segment's principal. For example, $10,000 for 100 days, then a $2,000 deposit for the remaining 265 days of a 365-day year:

First segment: $10,000 × (1.000136986)^100 ≈ $10,013.76. Second segment: ($10,013.76 + $2,000) × (1.000136986)^265 ≈ $12,013.76 × 1.03679 ≈ $12,455.65.

Summing the segments gives the ending balance. This method is exact under a daily-compounding assumption and is the most transparent way to reproduce a statement by hand.

  1. Use the average daily balance. Many institutions compute interest on the average daily balance over the crediting period. If the balance varies, the interest for a month is approximately (average daily balance) × (periodic rate) × (days in period), with compounding applied at crediting. This is an approximation of the segment method but matches how many statements are actually produced. The two approaches give nearly identical results when balances change smoothly and diverge slightly when a large deposit or withdrawal lands mid-period.

For frequent transactions (daily deposits, for instance), the segment method becomes laborious, and a spreadsheet with one row per day—balance, daily rate, interest accrued, new balance—is the practical tool. That row-by-row approach is literally the definition of daily compounding and will reconcile to the penny if the institution's conventions are known.

Worked Comparison: Compounding Frequencies

The following table shows the effect of compounding frequency on $10,000 at a 5% nominal annual rate for one year. These are illustrative values computed from the formula; actual account terms vary.

Frequency n Periodic rate Ending amount Effective annual rate
Annual 1 5.0000% $10,500.00 5.0000%
Quarterly 4 1.2500% $10,509.45 5.0945%
Monthly 12 0.4167% $10,511.62 5.1162%
Daily (365) 365 0.01370% $10,512.67 5.1267%
Continuous — — $10,512.71 5.1271%

The table makes the key point visually: moving from annual to daily compounding adds about $12.67 of interest on $10,000 at 5%, and moving from daily to continuous compounding adds less than a cent. The marginal benefit of more frequent compounding shrinks rapidly. This is why the difference between "daily" and "monthly" compounding is real but modest at ordinary rates, and why the difference between "daily" and "continuous" is essentially negligible for consumer purposes.

The continuous-compounding figure comes from A = P × e^(r × t), where e ≈ 2.71828; it is the mathematical limit as n grows without bound. It is included for completeness, not because consumer accounts use it.

Common Mistakes and How to Avoid Them

Using the APY as the nominal rate. As noted, this overstates growth. If the account quotes APY, either use it directly as a one-step multiplier (A = P × (1 + APY)^t) or convert back to a nominal rate before applying the daily formula.

Forgetting to convert the percentage to a decimal. A 5% rate is 0.05, not 5. Entering 5 into (1 + r/n) produces astronomically wrong results.

Mixing day counts. A 360-day periodic rate paired with a 365-day exponent, or a monthly rate paired with a daily exponent, produces inconsistency. Keep n, the periodic rate, and the exponent drawn from the same convention.

Treating simple interest as compound. Simple interest is P × r × t, with no exponent. For one year the difference is small ($500 versus $512.67 in the example), but it grows with time and rate. Over 20 years at 5%, simple interest gives $20,000 total on $10,000, while daily compounding gives about $27,126—a difference of more than $7,000.

Ignoring taxes and fees. The formula computes gross interest. Taxes on interest income (in taxable accounts) and any account fees reduce the net result. These are jurisdiction- and account-specific and must be applied separately.

Assuming the advertised rate is guaranteed. Variable-rate accounts can change the rate during the year, in which case the formula must be applied segment by segment with the rate in force for each segment. The formula itself does not predict future rates.

Reverse Questions: Finding Rate, Principal, or Time

Principal needed to reach a target: P = A / (1 + r/n)^(n × t). To reach $10,512.67 in one year at 5% daily, you need $10,000. Time to double: solve (1 + r/n)^(n × t) = 2 for t, giving t = ln(2) / (n × ln(1 + r/n)). At 5% daily, t ≈ 13.88 years. The familiar "Rule of 72" (72/5 ≈ 14.4 years) is a rough approximation; the exact figure is slightly lower. Implied rate: r = n × [(A/P)^(1/(n × t)) − 1]. If $10,000 grows to $10,512.67 in one year with daily compounding, solving gives r ≈ 0.05, confirming the 5% nominal rate.

These rearrangements are exact under the formula's assumptions and are useful for sanity-checking quoted figures. They do not account for taxes, fees, or rate changes, so they describe gross, constant-rate growth only.

What Is Unknown Without the Account Terms

The formula is universal, but several inputs depend on the specific account and cannot be inferred:

Whether the quoted rate is nominal or effective (APY). This is the most consequential ambiguity. Without the account disclosure, either interpretation is possible, and the two produce different answers. The day-count convention (360, 365, or actual/actual) and leap-year handling. These affect exact reconciliation, though the effect is small at typical rates. The crediting schedule. Interest may accrue daily but be credited monthly; the balance shown mid-month may not include accrued-but-uncredited interest. The formula computes the compounded result, but the statement may show a different interim figure. Balance activity. Deposits, withdrawals, and rate changes require the segment method or the average-daily-balance method, and the institution's specific method matters for exact matching. Taxes and fees. These are outside the formula and are specific to the account and jurisdiction.

The answerable part is the mathematics: given P, r, n, and t under a stated convention, the formula yields A and the interest A − P. What remains unknown is which convention and which rate definition a particular account uses—and that must come from the account's terms, not from a generic calculation.