To calculate APR in Excel, use the RATE function on the cash flows of the loan: =RATE(nper, pmt, pv, [fv], [type], [guess])*12 for a monthly-payment loan. This gives the nominal annual rate; for the true APR that includes fees, add the fees to the loan amount (or subtract them from the proceeds) and run RATE again on the adjusted net amount. The steps below show both the simple case and the fee-inclusive case, with the exact formulas and cell layout.
What You'll Need
- Microsoft Excel (any recent desktop version; the RATE function also works in Excel for Microsoft 365, Excel 2019/2021, and Excel for Mac).
- The loan amount (principal), the stated annual interest rate or the monthly payment, the loan term in months or years, and any upfront fees you want included in the APR.
- A blank worksheet. No add-ins are required.
Note: menu labels and function names can differ slightly by Excel version and region, but RATE is consistent across versions.
Step-by-Step
- Set up your inputs. In cells A1:B5, enter labels and values:
- A1: Loan amount B1: 20000
- A2: Annual interest rate B2: 6% (enter as 0.06 or 6%)
- A3: Term in years B3: 5
- A4: Payments per year B4: 12
- A5: Upfront fees B5: 500
- Calculate the monthly payment. In B6, enter
=PMT(B2/B4, B3*B4, -B1). This returns the fixed monthly payment (a negative number because it is cash out). For the example, it is about -386.66. - Calculate the nominal APR (no fees). In B7, enter
=RATE(B3*B4, B6, -B1)*B4. This gives the annual rate that equates the loan amount to the payment stream. With the inputs above, it returns 6.00%. - Adjust for fees to get the true APR. Lenders usually deduct fees from the amount you actually receive, so the net proceeds are B1 minus B5. In B8, enter
=RATE(B3*B4, B6, -(B1-B5))*B4. This is the APR including the 500 fee. For the example, it rises to about 6.59%. - Format the result as a percentage. Select B7 and B8, then use Home > Number Format > Percentage and set two decimal places. If you see a decimal like 0.0659, that is 6.59%.
- Check the sign convention. RATE requires at least one negative and one positive cash flow. If you get a #NUM! error, make sure the present value (loan amount) is entered as a negative number or the payment is negative, not both positive.
- Handle a balloon or extra final payment. If the loan has a final balloon payment, add it as the fv argument:
=RATE(nper, pmt, pv, fv)*12, with fv entered as a negative number if it is a payment you make. - Verify with a second method (optional). Build an amortization schedule: in a new column, calculate interest for each period as previous balance times monthly rate, subtract that from the payment to get principal, and reduce the balance. The rate that drives the ending balance to zero is the APR. This cross-check catches input errors.
Common Mistakes
- Forgetting to multiply by payments per year. RATE returns the rate per period. For monthly payments, multiply by 12; for quarterly, by 4. Omitting this gives a monthly rate that looks far too low.
- Using the nominal rate as APR. The stated interest rate ignores fees. Always run the fee-adjusted RATE if you want the APR that reflects the true cost of borrowing.
- Mixing signs. RATE needs one negative and one positive cash flow. Enter the loan amount as positive and the payment as negative (or vice versa), but do not make both positive.
- Using years instead of periods. The nper argument must be the total number of payment periods, not years. For a 5-year monthly loan, nper is 60.
- Ignoring fees paid at origination. If fees are deducted from the proceeds, the net amount received is lower, which raises the APR. Use the net proceeds in the pv argument.
Tips
- Label every input cell and use absolute references (e.g., $B$1) when copying formulas, so the formula does not shift unexpectedly.
- Use Data > What-If Analysis > Goal Seek as an alternative: set the payment cell to the known payment by changing the rate cell. This is handy when you know the payment but not the rate.
- For loans with irregular fees paid at different times, build a cash-flow table and use XIRR instead of RATE. XIRR handles uneven dates and multiple cash flows.
- Keep a separate cell for the number of payments per year so you can switch between monthly, biweekly, and weekly loans without rewriting formulas.
- Round only at the final display step. Rounding intermediate values can shift the APR by a few basis points.
Troubleshooting
- #NUM! error: Usually a sign-convention problem or a guess that is too far off. Ensure one cash flow is negative. If needed, add a guess argument such as 0.1.
- Result looks like 0.005 instead of 6%: You forgot to multiply by payments per year, or the cell is formatted as a number rather than a percentage. Multiply by 12 and apply Percentage format.
- APR lower than the stated rate: Check that fees are subtracted from the loan amount, not added to the payment. Fees reduce proceeds, which should raise the APR.
- Payment amount does not match the lender's figure: Confirm the payment timing (beginning or end of period). The type argument is 0 for end-of-period (most loans) and 1 for beginning-of-period. Also check whether the lender uses a 360-day or 365-day year; Excel's RATE assumes equal periods, so a 365-day basis may need a manual adjustment.
- Formula returns a rate but the amortization schedule does not balance to zero: Recheck that nper equals the total number of payments and that the payment is the exact fixed amount. A small typo in the payment shifts the ending balance.
Frequently Asked Questions
What is the difference between APR and the nominal interest rate?
The nominal rate is the stated annual rate on the principal. APR includes fees and other charges, so it is usually higher and reflects the true annual cost of borrowing.
Can I calculate APR in Excel without the RATE function?
Yes. You can build an amortization schedule and use Goal Seek to find the rate that makes the ending balance zero, or use XIRR on a dated cash-flow table. RATE is the quickest for fixed-payment loans.
Does Excel's RATE function work for biweekly or weekly loans?
Yes. Set nper to the total number of biweekly or weekly payments and multiply the result by 26 or 52 respectively. Keep the payment and present value in the same period units.
How do I include origination fees in the APR calculation?
Subtract the fee from the loan amount to get net proceeds, then use that net figure as the present value in RATE. The resulting rate is the APR including the fee.
Why does my APR change when I change the loan term?
APR depends on the timing of cash flows. A longer term spreads fees over more periods, which can lower the annualized cost, while a shorter term concentrates them, raising the APR.
Is Excel's RATE function accurate for mortgages with closing costs?
It can be, if you include all lender fees and use the net amount disbursed. For complex mortgages with multiple fees at different dates, XIRR gives a more precise APR.