calculate-loan

01 Loan payments

Interest Calculator Between Two Dates

Calculator No. 01-28712 · Updated · Formula and assumptions shown below

The calculator on this page is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

Estimate for education, not financial advice. The result follows from the numbers you enter and the formula shown. It is not a quote or an offer, and it does not include fees, taxes or insurance unless the calculator asks for them. Ask your lender for the exact figures.

An interest calculator between two dates computes the simple or compound interest accrued on a principal balance over a specific period, using the exact number of days (or months) between the start and end dates. You enter the principal, the annual interest rate, the start date, the end date, and optionally the compounding frequency, and it returns the interest amount and the total balance. This is useful for savings accounts, certificates of deposit, personal loans, or any situation where interest accrues over a non-standard term.

Formula

The calculator uses the compound interest formula adjusted for a fractional year:

A = P × (1 + r / n)(n × t)

  • P = principal (initial amount, in dollars)
  • r = annual interest rate (as a decimal, e.g., 5% = 0.05)
  • n = number of compounding periods per year (365 for daily, 12 for monthly, 4 for quarterly, 1 for annually)
  • t = time in years, calculated as (end date – start date) / 365
  • A = total amount after interest (principal + interest)

Interest = A – P. The calculator uses the exact number of days between the two dates, dividing by 365 to get the year fraction. This is the standard “actual/365” day-count convention commonly used for savings accounts and many loans.

Worked Example

Using the defaults: P = $10,000, APR = 5%, start = 2024-01-01, end = 2024-06-30, compounding = daily (n = 365).

  1. Calculate the number of days: from Jan 1 to Jun 30 in 2024 (a leap year) is 181 days.
  2. Time in years: t = 181 / 365 ≈ 0.4958904 years.
  3. Daily rate: r / n = 0.05 / 365 ≈ 0.0001369863.
  4. Exponent: n × t = 365 × 0.4958904 ≈ 181.0 (exactly the number of days).
  5. Amount: A = 10000 × (1 + 0.0001369863)^181 ≈ 10000 × 1.025096 ≈ 10250.96.
  6. Interest = A – P = 10250.96 – 10000 = $250.96.
  7. Total balance = $10,250.96.

The calculator rounds to the nearest cent, giving interest of $250.96 and total of $10,250.96.

Assumptions

  • The interest rate is fixed for the entire period.
  • Interest compounds at the selected frequency (daily, monthly, quarterly, or annually).
  • The year is treated as 365 days (actual/365). Leap years are not specially handled; the actual number of days is used.
  • No fees, taxes, or penalties are included.
  • For simple interest (no compounding), use the formula I = P × r × t; this calculator uses compound interest by default.

When to Use This Calculator

Use this calculator when you need to know the interest earned or owed between two specific dates. Common situations include:

  • Calculating interest on a savings account or certificate of deposit (CD) that you plan to close mid-term.
  • Estimating the interest on a personal loan that you want to pay off early.
  • Determining the interest portion of a late payment or a prorated refund.
  • Comparing different compounding frequencies for the same nominal rate.

The result helps you see how much the interest accrues over a custom period, which is often different from a full year or a standard loan term.

How to Read the Results

The first output, Interest earned, is the amount of interest added to the principal over the period. The second output, Total balance, is the principal plus that interest. If you are borrowing, the interest is what you owe in addition to the principal; if you are saving, it is what you have earned.

Note that the result depends heavily on the compounding frequency. For example, with $10,000 at 5% for one year, daily compounding yields about $512.67, monthly compounding yields $511.62, and annual compounding yields exactly $500.00. The more frequent the compounding, the slightly higher the total.

Common Mistakes and Limitations

  • Using 360 days instead of 365: Some financial products use a 360-day year (actual/360). This calculator uses 365, which is more common for savings. If your product uses 360, the interest will be slightly higher.
  • Ignoring leap years: The calculator uses the actual number of days between dates, so a period that includes February 29 will have one extra day, which is correct.
  • Mixing up APR and APY: APR is the nominal annual rate; APY includes the effect of compounding. This calculator uses APR as the input.
  • Rounding too early: If you round intermediate steps, the final result may differ by a few cents. The calculator keeps full precision internally.
  • Assuming simple interest: If the product uses simple interest, the result will be different. For simple interest, use I = P × r × t.

Choosing the Right Compounding Frequency

Financial products specify how often interest is compounded. The most common are:

  • Daily (365): Used by many savings accounts and some credit cards.
  • Monthly (12): Common for loans, mortgages, and some savings accounts.
  • Quarterly (4): Used by some CDs and bonds.
  • Annually (1): Simple to understand, but less common for savings.

If you are unsure, check your account agreement or loan document. The calculator’s default is daily, which is the most frequent and gives the highest interest for a given APR.

Simple vs. Compound Interest

Simple interest is calculated only on the original principal: I = P × r × t. Compound interest adds interest to the principal at each compounding period, so you earn interest on interest. For short periods (a few months), the difference is small, but over years it becomes significant. This calculator uses compound interest, which is the standard for most savings and loans. If you need simple interest, you can set the compounding frequency to “Annually” and use a period of less than a year, but that will still compound annually if the period is exactly one year; for a fractional year, it effectively becomes simple interest only if you use the formula separately.

Frequently Asked Questions

How do I calculate interest between two dates manually?

To calculate simple interest, count the days between the dates, divide by 365 to get years, then multiply principal × rate × time. For compound interest, use the formula A = P × (1 + r/n)^(n × t) where t is the days/365. For daily compounding, n = 365 and the exponent becomes the number of days.

What is the difference between APR and APY?

APR (Annual Percentage Rate) is the nominal annual interest rate without compounding. APY (Annual Percentage Yield) includes the effect of compounding within the year. For example, a 5% APR compounded daily gives an APY of about 5.13%. This calculator uses APR as the input.

Does this calculator work for leap years?

Yes, it uses the actual number of days between the two dates, so if the period includes February 29, that day is counted. The year fraction is computed as actual days / 365, which is a standard convention.

Can I use this for a loan with a fixed payment schedule?

This calculator is for interest accrual on a lump sum, not for amortized loans with regular payments. For loans with payments, use a loan amortization calculator that accounts for each payment reducing the principal.

What if the end date is before the start date?

The calculator will show a negative interest, which is not meaningful. Ensure the end date is after the start date. If you need to calculate interest for a period that ends before it starts, check your dates.

Why does the result differ from my bank statement?

Banks may use different day-count conventions (e.g., actual/360), different compounding schedules, or may include fees. Also, they may round to the nearest cent at each compounding period. This calculator provides an estimate; your bank’s disclosure gives the exact method.

Remember, this calculator provides an estimate based on the inputs you provide; your lender or bank’s disclosure will show the exact figures.

Related

Formula used
in p | Principal amount | $ | 10000 | 0 | 100000000
in apr | Annual interest rate | % | 5 | 0.01 | 100
in start | Start date | - | 2024-01-01 | 1900-01-01 | 2100-12-31
in end | End date | - | 2024-06-30 | 1900-01-01 | 2100-12-31
sel freq | Compounding frequency | Daily=365, Monthly=12, Quarterly=4, Annually=1
out interest | Interest earned | $ | p * ((1 + apr / 100 / freq) ^ (freq * (end - start) / 365) - 1) | 2
out total | Total balance | $ | p + interest | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard loan formula for this calculation, fixed rate and monthly compounding unless stated, rounded as each result states. Not financial advice; no lender, rate or product is recommended. See formulas and assumptions, the disclaimer or report an error.

More in this section

The whole Loan payments section →