How to Calculate Monthly Interest on a Loan with Changing Balances in Excel
Question details
The user needs to calculate monthly interest for an intercompany loan where the principal balance changes throughout the month due to irregular invoices or payments.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Managing an intercompany loan without a fixed end date where the balance fluctuates over time, requiring an accurate monthly interest accrual rather than a flat annual application.
- Observed behavior
- Applying an annual rate directly to the month-end balance produces inaccurate interest charges. The calculation needs to reflect the exact duration each balance was held during the month.
Gather your loan's annual interest rate, the compounding policy, and a complete ledger of all transactions. Since this involves financial accounting, it is highly recommended to consult your CFO or a qualified CPA to confirm your organization's specific policies.
Calculate Loan Interest Based on Daily Balances
Use this method for precise calculation when loan transactions (inflows and outflows) occur on various dates throughout the month.
When balance changes happen during the month, applying a flat monthly rate to the ending balance is inaccurate. Instead, you should calculate interest based on the exact number of days a specific balance was held.
To avoid daily compounding when the loan agreement dictates monthly compounding, ensure you calculate the daily interest in a separate column without adding it to the daily principal balance.
Create columns in your Excel sheet for Date, Inflow (Advances), Outflow (Payments), Balance, and Daily Interest.
In a separate reference cell, calculate your daily rate by dividing the annual interest rate by 365 (e.g., =5%/365). Note that some accounting policies may use 366 during leap years.
Use a basic formula to calculate the running balance. For example, if the previous balance is in D2, inflow in B3, and outflow in C3, enter =D2+B3-C3 into cell D3.
Multiply the current day's balance by the daily rate reference. For example, type =D3*$F$1 (assuming F1 holds the daily rate). Keep this value in the Daily Interest column so it does not compound.
At the end of the month, use the SUM function (e.g., =SUM(E2:E32)) on your Daily Interest column to find the total interest to charge or pay for that month.

Apply a Monthly Rate for Month-End Transactions
Use this simpler approach if all principal increases and reductions strictly occur on the very last day of the month.
Easily Manage Loan Schedules and Financial Formulas with WPS Office
Calculate dynamic loan interest, track changing balances, and build comprehensive financial models using WPS Spreadsheet. It offers a clean, intuitive interface for all your accounting needs without heavy subscription costs.
- 1. Open a new spreadsheet: Launch WPS Spreadsheet and create a new blank workbook or select a pre-made financial template from the library.
- 2. Set up your loan tracking headers: Create your Date, Inflow, Outflow, Balance, and Interest columns just as you would in standard spreadsheet software.
- 3. Input the interest rate: Place your annual interest rate in a dedicated cell (e.g., F1) and format the cell as a Percentage for easy calculation.
- 4. Apply the calculation formulas: Use standard arithmetic formulas such as =D2+B3-C3 for the running balance and =D3*($F$1/365) to seamlessly calculate the daily interest.

Frequently Asked Questions
Why should I calculate daily interest instead of monthly for a loan with changing balances?
If loan payments or new advances happen in the middle of a month, a standard monthly calculation applied only to the ending balance will overcharge or undercharge interest. Calculating daily interest ensures you only account for the exact days the specific funds were held.
How do I prevent interest from compounding daily in my spreadsheet?
To prevent daily compounding, keep your accrued daily interest in a separate column and do not add it to the daily running principal balance. You should only add the sum of the accumulated daily interest to the principal at the end of the month, according to your monthly compounding agreement.
What formula do I use to update the daily balance in Excel?
Use a basic arithmetic formula adding inflows and subtracting outflows from the prior balance. For example, in cell D3, you would use =D2+B3-C3 (where D2 is the previous balance, B3 is new advances, and C3 is payments).
How do leap years affect daily interest calculations?
Depending on specific accounting policies, some financial models divide the annual interest rate by 366 instead of 365 during a leap year. You can use the YEAR function in your formulas to detect leap years and adjust the divisor automatically, though you should confirm this rule with your CPA first.




