Calculate Mortgage Payment in Excel
In this article
You can calculate a monthly mortgage payment in Excel using the PMT function, which requires inputs for the loan amount, interest rate, and loan term. This method allows you to see exactly how much your principal and interest payments will be each month for the life of the loan.
What You'll Need
- A computer with Microsoft Excel installed (or the free Microsoft Excel Online web app).
- Access to your loan details, specifically the principal amount, annual interest rate, and loan term in years.
Step-by-Step
- Open Excel and create a new blank workbook.
- Label your cells to keep track of your inputs. In cell A1, type "Loan Amount". In cell B1, type "Annual Interest Rate". In cell C1, type "Loan Term (Years)". In cell D1, type "Monthly Payment".
- Enter your loan data into the cells directly below the headers.
- In cell A2, type your principal amount (e.g., 250000).
- In cell B2, type your annual interest rate. Ensure you do not include the percent sign (%). For example, type 5.5 for a 5.5% rate.
- In cell C2, type the length of the loan in years (e.g., 30).
- Enter the PMT formula into cell D2. The syntax for the PMT function is =PMT(rate, nper, pv, [fv], [type]).
- Rate: Divide your annual interest rate by 12 to get the monthly rate. Reference the cell containing the interest rate and divide by 12. In this example, type =B2/12.
- Nper: Multiply the loan term in years by 12 to get the total number of monthly payments. Reference the cell containing the years and multiply by 12. In this example, type =C2*12.
- Pv: This stands for present value, which is the loan amount. Reference the cell containing the principal amount. In this example, type A2.
- Fv and Type: These are optional. If you leave them out, Excel assumes the future value is 0 and payments are due at the end of the period.
=PMT(B2/12, C2*12, A2). - Press Enter to execute the formula. Excel will display the payment amount as a negative number, which is standard for representing cash outflows.
- Format the cell to make the number easier to read. Right-click on cell D2, select "Format Cells", and choose "Currency". Select your preferred currency symbol and rounding option. Click OK.
- Verify the result. For the example above (250000 loan, 5.5% rate, 30 years), the result should be approximately -1412.02. This is your total monthly principal and interest payment.
Common Mistakes
When using the PMT function, the most common error is inputting the interest rate or loan term incorrectly. The function relies on specific timing for these inputs. If the inputs are wrong, the resulting payment will be wildly inaccurate.
- Forgetting to divide the annual rate by 12: The PMT function expects the rate argument to be the periodic interest rate. If you simply type the annual percentage (e.g., 5.5) for a monthly payment calculation, the result will be calculated based on a 5.5% monthly rate, which is astronomically high. Always divide the annual rate by 12.
- Forgetting to multiply the years by 12: The nper argument must represent the total number of payment periods. If you enter 30 for a 30-year mortgage, Excel thinks you are making only 30 payments. Always multiply the years by 12 to get the total number of months.
- Leaving the percent sign in the interest rate cell: While Excel is smart enough to sometimes handle this, it is best practice to input the raw number. If you type "5.5%" directly into the cell referenced by the formula, it may interpret the text as a value of 0.055, which is mathematically correct, but it is safer to type the number without the symbol and let the formatting handle the display.
- Not formatting the result as currency: By default, Excel displays financial numbers with long decimal places. A result of -1412.015456... looks confusing. Formatting the cell as Currency ensures the output is clean and easy to read.
Tips
- Use cell references: Instead of typing the numbers directly into the formula, type them into separate cells and reference those cells in the formula. This makes the calculation transparent. If you decide to change the loan amount, you only need to update one cell, and the payment will automatically recalculate.
- Separate Principal and Interest (P&I): The PMT function you just used calculates the total monthly payment, which includes only the principal and interest portions of the loan. It does not include property taxes, homeowners insurance, or HOA fees. To get the true monthly cost of owning a home, you must add these amounts manually to the result.
- Adjust for Bi-Weekly Payments: If you want to calculate a payment for a bi-weekly mortgage schedule, the inputs change slightly. You would divide the annual interest rate by 26 (52 weeks in a year) and multiply the loan term by 26. The formula would be =PMT(B2/26, C2*26, A2).
- Check for Negative Numbers: Remember that Excel represents money leaving your account as a negative number. If you want the payment to appear as a positive number for your budget, you can simply wrap the entire PMT function in a negative sign. For example, type =-PMT(B2/12, C2*12, A2).
Troubleshooting
- The payment is a negative number: This is not an error. It is Excel's way of showing that this is a cash outflow. To make it positive, simply type a negative sign before the formula (e.g., -PMT(...)).
- The payment is a #NUM! error: This usually means one of your arguments is invalid. The most common cause is a mismatch in the rate and nper units. For example, if you divide the annual rate by 12 (getting a monthly rate) but then use the number of years (e.g., 30) as the nper, the calculation fails because the units do not match. Ensure the rate is a monthly rate and nper is a total number of months.
- The payment is a #DIV/0! error: This occurs if the interest rate is zero. You cannot perform a division by zero in a standard mortgage calculation. If you are trying to calculate a loan with no interest, you must use a different method.
- The payment looks like a small decimal: If your result is something like -0.000123, you likely have the loan term in months but the interest rate in years. Check that your rate argument is divided by 12 and your nper argument is multiplied by 12.
Frequently Asked Questions
Does the PMT function include property taxes and insurance?
No, it does not. The PMT function only calculates the principal and interest. You must add property taxes, insurance, and any HOA fees to the result to get the total monthly housing cost.
Can I calculate the total interest paid over the life of the loan?
Yes, you can use the CUMIPMT function. This function calculates the cumulative interest paid between two periods. For the total interest, you would use the start and end periods of the loan. Alternatively, you can multiply the monthly payment by the total number of payments and subtract the loan amount.
What if my interest rate is an APR that includes points and fees?
The PMT function works with the nominal interest rate. If your APR includes fees that are added to the loan amount, you should add those fees to the principal amount in cell A2. If the APR is just a different way of quoting the same rate, you can use it directly.
Why is my monthly payment different from the bank's offer?
There are several reasons for this. The bank's offer might include taxes, insurance, and fees that you did not account for. It might also be based on a different interest rate or a shorter or longer loan term. Always compare the full costs, not just the P&I payment.
How do I calculate a balloon payment?
For a balloon payment, you would use the PV function to calculate the present value of the loan given the balloon payment. The PMT function would then be used to calculate the payments for the specified term, with the balloon payment due at the end.
Can this formula be used for an adjustable-rate mortgage (ARM)?
The standard PMT formula is for a fixed rate. For an ARM, the interest rate changes periodically. You would need to calculate the payment for each period separately using the new interest rate for that period.