How to Put Mortgage Calculator in Excel
Creating a mortgage calculator in Excel is a practical way to understand loan payments, interest rates, and amortization schedules. This guide will walk you through the process step-by-step, from basic setup to advanced formulas and visualization.
Creating a Basic Mortgage Calculator
To create a mortgage calculator in Excel, you'll need to understand the key inputs and outputs. The primary inputs are:
- Loan amount (principal)
- Interest rate (annual percentage rate)
- Loan term (in years)
The primary outputs are:
- Monthly payment amount
- Total interest paid over the life of the loan
- Amortization schedule
Basic Formula
The standard mortgage payment formula is:
M = P [ i(1 + i)^n ] / [ (1 + i)^n - 1 ]
Where:
- M = monthly payment
- P = principal loan amount
- i = monthly interest rate (annual rate divided by 12)
- n = number of payments (loan term in years × 12)
Step-by-Step Setup
- Open a new Excel workbook and name it "Mortgage Calculator"
- In cell A1, enter "Loan Amount" and in B1, enter the loan amount (e.g., 200000)
- In cell A2, enter "Annual Interest Rate" and in B2, enter the rate (e.g., 0.04 for 4%)
- In cell A3, enter "Loan Term (Years)" and in B3, enter the term (e.g., 30)
- In cell A5, enter "Monthly Payment" and in B5, enter the formula:
=PMT(B2/12,B3*12,B1) - In cell A6, enter "Total Interest Paid" and in B6, enter:
=B5*B3*12-B1
Advanced Excel Formulas
For a more detailed mortgage calculator, you can add additional features:
Amortization Schedule
To create an amortization schedule:
- In cell D1, enter "Amortization Schedule"
- In cell D2, enter "Payment Number"
- In cell E2, enter "Payment Amount"
- In cell F2, enter "Principal Paid"
- In cell G2, enter "Interest Paid"
- In cell H2, enter "Remaining Balance"
- In cell D3, enter "1"
- In cell E3, enter the monthly payment from B5
- In cell F3, enter:
=IF(H2+E3*B2/12>0, E3-(H2*B2/12), B1) - In cell G3, enter:
=H2*B2/12 - In cell H3, enter:
=H2-F3 - Copy these formulas down the column for the entire loan term
Extra Payment Analysis
To analyze the impact of extra payments:
- In cell A8, enter "Extra Payment Amount"
- In cell B8, enter an extra payment amount (e.g., 100)
- In cell A9, enter "New Loan Term (Months)"
- In cell B9, enter:
=NPER(B2/12,B5,B1,-B8) - In cell A10, enter "Total Savings" and in B10, enter:
=(B5*B3*12-B1)-(B5*B9/12-B1)
Adding Visualization
Excel's charting tools can help visualize mortgage data:
Creating a Payment Breakdown Chart
- Select the range with your amortization data
- Go to Insert > Pie Chart or Column Chart
- Right-click the chart and select "Select Data"
- Add a series for "Principal Paid" and "Interest Paid"
- Format the chart with appropriate colors and labels
Creating a Balance Over Time Chart
- Select the payment number and remaining balance columns
- Go to Insert > Line Chart
- Format the chart to show the balance decreasing over time
Worked Example
Let's create a mortgage calculator for a $200,000 loan at 4% interest over 30 years:
| Input | Value |
|---|---|
| Loan Amount | $200,000 |
| Annual Interest Rate | 4% |
| Loan Term | 30 years |
The calculator would show:
- Monthly payment: $995.54
- Total interest paid: $228,213.64
- Total payments: $428,213.64
The amortization schedule would show that over the first year:
- First payment: $995.54 (interest: $800, principal: $195.54)
- Last payment of first year: $995.54 (interest: $16.36, principal: $979.18)
- Total principal paid in first year: $11,700