To find the APR (annual percentage rate) in Excel, use the RATE function: =RATE(nper, pmt, pv, [fv], [type], [guess])*12. Put the number of monthly payments in nper, the monthly payment as a negative number in pmt, and the loan amount as a positive number in pv. The result is the monthly interest rate; multiply by 12 to annualize it. This works for fixed-rate loans with regular payments. For loans with fees, the same function gives the APR if you subtract the fees from the amount you actually receive (the net proceeds) before entering pv.
What You'll Need
- Excel (any recent version) or a free spreadsheet app that supports RATE, such as Excel for the web or Google Sheets.
- The loan amount (principal).
- The monthly payment amount.
- The total number of payments (loan term in months).
- Optional: any upfront fees, if you want the true APR rather than the nominal interest rate.
Step-by-Step
- Set up four labeled cells. In a blank sheet, type these labels in column A and values in column B:
- A1: Loan amount B1: 20000
- A2: Monthly payment B2: 500
- A3: Number of payments B3: 48
- A4: APR B4: (leave blank for the formula)
- Enter the RATE formula in B4. Type
=RATE(B3, -B2, B1)*12and press Enter. The minus sign in front of B2 is required: Excel's RATE function expects cash flows to have opposite signs, so the payment (money going out) must be negative while the loan amount (money coming in) is positive. The*12converts the monthly rate to an annual rate. - Format the result as a percentage. Select B4, then use the Home tab's percentage style button (the % icon) or press Ctrl+Shift+% (Cmd+Shift+% on Mac). You should see something like 7.50%.
- Check the sign convention. If you get a
#NUM!error, the most common cause is bothpmtandpvhaving the same sign. Make the payment negative and the loan amount positive (or vice versa) and try again. - Add fees for a true APR. If the lender charges $400 in upfront fees, the borrower actually receives $19,600, not $20,000. Change B1 to 19600 and rerun the formula. The result is higher than the nominal rate because the same payment is being made on a smaller amount of money. That is the APR.
- Use the optional arguments if needed. The full syntax is
=RATE(nper, pmt, pv, [fv], [type], [guess]). Leavefvblank for a fully amortizing loan (balance zero at the end). Settypeto 1 if payments are due at the start of each period, or 0 (or blank) for the end. Theguessargument is rarely needed; if Excel returns#NUM!on a valid setup, try a guess of 0.1. - Annualize correctly. RATE returns the rate per payment period. For monthly payments, multiply by 12. For quarterly payments, multiply by 4. For weekly, multiply by 52. Do not multiply by the number of years.
- Double-check with a payment calculation. In another cell, enter
=PMT(B4/12, B3, -B1). It should return your original monthly payment (within rounding). If it does not, one of your inputs is wrong.
Common Mistakes
- Same signs on pmt and pv. This is the number one cause of
#NUM!errors. One must be negative. - Forgetting to annualize. RATE gives a monthly rate for monthly payments. Reporting 0.625% as the APR instead of 7.5% is a large error.
- Using years instead of periods.
npermust be the total number of payments, not the number of years. A 4-year monthly loan hasnper= 48. - Ignoring fees. The nominal interest rate and the APR differ when there are origination fees, closing costs, or points. Subtract fees from the loan amount to get the APR.
- Mixing payment frequency. If payments are biweekly,
nperis the number of biweekly payments and you multiply the result by 26, not 12. - Typing percentages as text. Enter 7.5% as 0.075 or use the % format; a cell containing the text "7.5%" will break formulas that reference it.
Tips
- Use cell references rather than hard-coded numbers inside the formula so you can change one input and see the APR update instantly.
- Name your input cells (Formulas > Define Name) to make the formula read like
=RATE(Payments, -Payment, Loan)*12. - Build a small amortization table with
=IPMTand=PPMTto see how much of each payment is interest versus principal. It is a good sanity check on the APR. - If you are comparing offers, put each loan's inputs in its own row and drag the RATE formula down. The lowest APR is usually the cheapest loan, but check the total cost too.
- Remember that APR assumes you hold the loan to term. If you pay it off early, the effective cost can differ, especially with front-loaded fees.
Troubleshooting
- #NUM! error. Check that
pmtandpvhave opposite signs, thatnperis positive, and that the payment is large enough to ever repay the loan. If all inputs look right, add a guess argument such as,0.1. - #VALUE! error. One of the referenced cells contains text instead of a number. Clear the cell and retype the value without currency symbols or spaces.
- Result looks far too small. You probably forgot the
*12. RATE returns the periodic rate. - Result looks far too large. You may have multiplied by 12 when payments are already annual, or entered
nperin years instead of periods. - Result is negative. The sign convention is reversed. Flip the signs on
pmtandpv. - Formula works but the number does not match the lender's APR. Lenders may include fees you have not entered, or may use a different day-count convention. Ask for the fee schedule and adjust
pvaccordingly.
Frequently Asked Questions
What is the difference between APR and interest rate in Excel?
The interest rate is the cost of borrowing the principal. The APR includes fees and other charges, so it is usually higher. In Excel, you calculate the interest rate with the full loan amount in pv, and the APR with the net amount actually received (loan minus fees).
Can I use RATE for a mortgage with points?
Yes. Subtract the points and closing costs from the loan amount to get the net proceeds, then run RATE on that figure. The result is the APR including those costs.
Why does RATE return a monthly rate instead of an annual one?
RATE works per payment period. If you enter monthly payments, it returns a monthly rate. Multiply by 12 to annualize it, or by 26 for biweekly payments.
What if my loan has a balloon payment?
Enter the balloon amount as the fv argument. For example, =RATE(60, -500, 20000, 5000)*12 assumes a $5,000 balance remaining after 60 payments.
Does Excel have a built-in APR function?
No. Excel has RATE, but not a dedicated APR function. RATE plus the fee adjustment described above is the standard way to calculate APR.
Can I calculate APR for a credit card in Excel?
Only if the card has a fixed payment schedule. Revolving credit with variable balances is better modeled with a full amortization table, because the APR depends on how you repay.