Calculate accrued interest on a variable loan
Estimate how much interest builds up when your loan rate changes over time. This calculator supports up to three rate periods, lets you model monthly payments, and visualizes cumulative interest and ending balance.
Calculator inputs
Enter the starting principal balance that will accrue interest.
Optional. Enter 0 if you want to see interest accrue without payments.
Use monthly compounding for many amortizing loans. Use simple daily to estimate daily accrual conventions.
If yes, accrued interest is added to balance before payment is applied.
Rate period 1
Months for monthly compounding, or days for daily methods.
Rate period 2
Enter 0 if you do not want to use this period.
Rate period 3
Add a third segment if your variable rate adjusts again.
Expert guide: how to calculate accrued interest on a variable loan
When you calculate accrued interest on a variable loan, you are measuring how much interest has built up on the outstanding balance while the rate changes over time. This sounds simple at first, but variable loans introduce one extra layer that fixed-rate loans do not: the annual percentage rate can reset according to a benchmark, contract language, promotional structure, or lender discretion within the loan terms. Because of that, a precise calculation must account for the loan balance, the interest rate in each period, the number of days or months at that rate, and whether payments reduce principal before the next rate period begins.
Accrued interest matters because it affects payoff quotes, monthly budgeting, refinancing decisions, and how quickly a balance can grow if payments are too low. It is especially important on products such as home equity lines of credit, adjustable-rate private student loans, variable-rate personal loans, margin loans, and some business credit facilities. In each case, interest generally does not grow at one uniform rate for the full life of the debt. Instead, it follows the lender’s stated formula, such as prime rate plus a margin or another benchmark plus a spread.
What accrued interest actually means
Accrued interest is the amount of interest earned by the lender but not yet paid by the borrower. If your statement closes monthly, interest may accrue every day but only appear on the statement on a later date. On many variable loans, that means your true cost between statements can shift if the benchmark index moves. A small change in rate can create a noticeable difference over time when balances are large or repayment is slow.
At a basic level, the formula looks like this:
- Simple daily interest: Balance × annual rate × (days ÷ day-count basis)
- Monthly compounding: Each month, interest = current balance × (annual rate ÷ 12)
- Variable-rate accrued interest: Repeat the calculation separately for each rate period, then add the results together
For example, if a $25,000 balance accrues at 6.25% for 6 months and then 7.10% for another 6 months, you should not use one blended guess unless you intentionally want a rough estimate. The more accurate approach is to calculate interest for the first 6-month segment, update the balance after any payments, then calculate the next segment using the new rate.
The four inputs that matter most
- Starting balance. Interest is charged on the outstanding principal or adjusted loan balance. If you use the wrong starting balance, every later number will be off.
- Rate schedule. You need the APR in each period and the length of time that rate applies.
- Accrual convention. Some lenders use a 365-day basis, others use a 360-day basis, and many amortizing loans effectively calculate on a monthly basis.
- Payment timing. If payments are made during the accrual window, they reduce later interest. If they are missed or too small, later interest can rise.
Step-by-step method to calculate accrued interest on a variable loan
The most reliable process is to break the loan into separate rate periods. Suppose your lender states that your annual rate is prime plus a margin, and prime changes during the year. You would calculate interest period by period instead of trying to force the whole year into one average rate.
- Start with the current outstanding loan balance.
- Write down each variable-rate period in order.
- For each period, note the applicable APR and the number of days or months at that rate.
- Calculate interest for that period using the lender’s accrual method.
- If payments occur in that period, subtract them according to the loan’s payment rules.
- Use the updated balance as the starting point for the next period.
- Add the interest from all periods to find total accrued interest.
This is exactly why a variable-loan calculator is useful. It automates the repetitive math while still reflecting rate resets, payment effects, and different accrual conventions.
Comparison table: benchmark rates that often influence variable borrowing costs
Many variable loans are linked directly or indirectly to common market benchmarks. The table below shows selected public benchmark statistics that help explain why borrowers saw costs rise sharply after 2021. Values are rounded annual averages drawn from widely followed Federal Reserve and related public market series.
| Year | U.S. Prime Rate Average | Approximate SOFR Average | Why it matters for borrowers |
|---|---|---|---|
| 2021 | 3.25% | 0.05% | Variable borrowing costs were comparatively low. |
| 2022 | 4.10% | 1.68% | Rapid rate increases lifted HELOCs and other adjustable products. |
| 2023 | 8.19% | 5.02% | Borrowers with index-linked debt felt significantly higher interest charges. |
| 2024 | 8.50% | 5.33% | Many variable-rate balances remained expensive compared with pre-2022 levels. |
These benchmark moves matter because lenders typically price variable loans as index plus margin. If the index rises 2 percentage points and your margin stays unchanged, your APR can rise by a similar amount. On a large balance, the extra monthly interest can be meaningful even before fees are considered.
Comparison table: selected consumer lending statistics relevant to variable-rate debt
Not every loan follows the same benchmark or pricing model, but public statistics give a useful reference point when you estimate accrued interest. The figures below show why even short accrual periods can become expensive on revolving or variable consumer debt.
| Metric | Recent Public Statistic | Interpretation |
|---|---|---|
| Commercial bank credit card interest rate on all accounts | 21.47% in Q4 2023 | High APRs magnify daily accrued interest on revolving balances. |
| Prime rate level | 8.50% during much of 2024 | Many HELOCs and variable consumer products use prime-based formulas. |
| Federal funds target range upper bound | 5.50% through much of 2024 | Short-term policy rates influence benchmark borrowing costs across the market. |
Daily interest versus monthly compounding
Borrowers often confuse simple daily accrual with monthly compounding. With simple daily interest, the lender calculates interest on the balance for a set number of days using a day-count basis such as 365 or 360. With monthly compounding, interest is added in monthly intervals, and future interest may be charged on a balance that already includes unpaid interest if the loan terms allow capitalization.
Here is why that distinction matters. Suppose you owe $10,000 at 9% APR for 30 days:
- Using a 365-day basis, accrued interest is about $73.97.
- Using a 360-day basis, accrued interest is about $75.00.
The difference looks small over one month, but over a year or on a larger balance it becomes more noticeable. That is why your lender’s promissory note or account agreement matters. Always match your calculation method to the contract method when accuracy matters.
Common mistakes people make
- Using one average rate for the full period. This can understate or overstate interest when rates moved sharply.
- Ignoring payment timing. A payment made earlier reduces later interest more than the same payment made later.
- Forgetting capitalization rules. Unpaid interest sometimes gets added back to principal, increasing future accrual.
- Mixing APR with periodic rates. Annual rate must be converted correctly to daily or monthly terms.
- Using the wrong day-count basis. A 360-day basis produces higher daily interest than a 365-day basis at the same nominal APR.
Worked example
Assume you have a $25,000 variable loan balance. For the first 6 months, the APR is 6.25%. For the next 6 months, the APR becomes 7.10%. You make a monthly payment of $450, and unpaid interest is capitalized before the payment is applied. A correct estimate will:
- Calculate month 1 interest at 6.25% divided by 12.
- Add that interest to the balance if capitalization applies.
- Subtract the $450 payment.
- Repeat for all 6 months at 6.25%.
- Switch to 7.10% for the next 6 months using the updated balance.
- Total all monthly interest charges to find accrued interest over the year.
This gives you a far better answer than a simple average-rate estimate because it recognizes that the balance declines over time while the rate increases. In real life, lenders may also have statement cutoffs, billing lags, or minimum payment formulas. Those details can slightly change the exact number, but the segmented method is the right framework.
How to use this calculator effectively
To get the most useful estimate from the calculator above, match your loan terms as closely as possible. If your lender compounds monthly and you make monthly payments, use the monthly compounding option. If your account agreement states interest accrues daily on an actual/365 or 360 basis, choose the corresponding daily option and enter the duration in days. Then list each rate period in order. For example, if your loan was 6.25% for 180 days and then 7.10% for another 90 days, enter two periods rather than one blended number.
If you are budgeting for a future rate reset, you can also model scenarios. Keep the first period equal to your current rate and set later periods to higher or lower rates to test sensitivity. This is especially useful for borrowers with HELOCs or any loan tied to prime or another short-term benchmark.
Authoritative resources for borrowers
- Consumer Financial Protection Bureau: What is accrued interest?
- Consumer Financial Protection Bureau: What is a variable rate?
- Federal Reserve: Selected Interest Rates data
Final takeaway
If you want to calculate accrued interest on a variable loan accurately, do not rely on a single rate assumption unless you only need a rough estimate. Break the loan into rate periods, use the correct day-count or compounding convention, reflect actual payments, and track the balance from one period to the next. That process reveals the true cost of changing rates and gives you a practical basis for repayment planning, refinance analysis, and payoff decisions.