Add a Mortgage Calculator to Your Website
Place a custom mortgage calculator on your website for leads
A mortgage calculator helps visitors estimate monthly payments while browsing homes on your website. It adds value to your home search tool and keeps leads engaged longer. You can place the calculator inside page content or in the side area of a page for easy access.
Need to Know
-
Add the calculator using the Custom Content option
-
Paste the code inside the source code (<>) view
-
You can change the default interest rate inside the code
-
The calculator on property details pages cannot be edited
-
Works on any page that allows custom HTML
Table of Contents
Mortgage Calculator Code
This is the standard code block used to display the mortgage calculator on your website. You will paste this into the source code (<>) of any page on your website.
<div class="mortgage_calculator side_captions">
<h3>Mortgage Calculator</h3>
<form action="#">
<dl>
<dt>Amount of Loan</dt>
<dd><input type="text" name="loan_amount" class="full" value="4975000"></dd>
<dt>Annual Interest Rate</dt>
<dd><input type="text" name="annual_interest_rate" value="4.5"> %</dd>
<dt>Term of Loan</dt>
<dd><input type="text" name="term_of_loan" value="30"> Years</dd>
<dt><!-- NOTHING HERE --></dt>
<dd>
<div><a href="#" class="button button_calculate"><span>Calculate</span></a></div>
</dd>
</dl>
<div class="spacer"><!-- NOTHING HERE--></div>
<div class="monthly_loan_payment"></div>
<div class="disclaimer">
<p>Does not include any taxes or fees.<br>
Please consult a financial professional.</p>
</div>
</form>
</div>
Adding the Calculator to a Page
You can place the calculator directly inside the main content area of any page that allows custom HTML.
-
Open your website editor by adding /admin to the end of your website address (e.g. www.yourwebsite.com/admin)
-
Open the page you want to edit
-
Click the source code (<>) button

-
Paste the calculator code
-
Click Save
Open the page and make sure the calculator shows up, looks correct, and all the buttons and fields work as expected before sharing it to anyone.
Adding the Calculator to the Sidebar
The side area of the page is a popular location because it keeps the calculator visible while visitors browse homes.
-
Open your website editor by adding /admin to the end of your website address (e.g. www.yourwebsite.com/admin)
-
Open your Sidebars settings
-
Add a new item
-
Set the item type to Custom Content
-
Click the source code (<>) button

-
Paste the calculator code
-
Click Save
Editing the Default Interest Rate
You can customize the starting interest rate shown in the calculator.
-
Locate this line in the calculator code:
-
<input type="text" name="annual_interest_rate" value="4.5"
-
-
Replace 4.5 with your preferred rate.
-
Example:
Changevalue="4.5"tovalue="6.75"
-
Best Practices
-
Place the calculator in the page sidebar if you want it visible on multiple pages
-
Add a short sentence reminding visitors these are estimates only
-
Test the calculator on desktop and mobile after publishing
-
Use it on buyer-focused pages to increase engagement and time on site
Troubleshooting
-
The calculator is not showing
Make sure you pasted the code inside the source code (<>) view. -
The calculator doesn't look right
The code might not have been added to your page properly. Make sure that you copy the calculator code as-is. -
The calculator on property details pages looks different
The mortgage calculator on property details pages cannot be edited or replaced
Frequently Asked Questions
-
Can I change the design or colors?
Not at this time. A designer would need to update this for you. -
Can I add more fields?
No. The calculator only supports the fields shown in the code. -
Does it include taxes or insurance?
No. It calculates loan payments only.
Need Help?
- Call us at 844-311-4969 (Mon–Fri, 8 AM–8 PM CST)
- Email support@realgeeks.com
- Visit Real Geeks University for free video courses
- Join the Real Geeks Mastermind Group on Facebook for peer tips and best practices