Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
30 Million+
Websites using our plugins
20+
Years of WordPress experience
3000+
WordPress tutorials
by experts

How to Add a Mortgage Calculator in WordPress (Step by Step)

A mortgage calculator answers the question your visitors actually came with: what would this home cost each month? Without one, they leave your page to do the math on a bank’s website.

It’s also a natural lead magnet for real estate agents, brokers, and lenders. Ask for a name and email address along with the loan details, and every calculation becomes a contact you can follow up with.

In this article, we’ll show you three ways to add a mortgage calculator in WordPress: a free embed with no plugin, a free plugin that runs directly in WordPress, and a form builder that captures a lead with each calculation.

How to Add a Mortgage Calculator in WordPress

Which Method Should You Use?

PickBest ForPricing
mortgagecalculator.org embedA quick calculator with no pluginFree
Responsive Mortgage CalculatorA calculator that works directly in WordPress and supports your own currencyFree
WPFormsCapturing a lead with each calculationPro plan and up

Method 1: Embed a Free Mortgage Calculator (No Plugin)

The easiest way to create a mortgage calculator is with the free embeddable calculator from mortgagecalculator.org. On the page, you can set default values for the home price, interest rate, loan term, property tax, PMI, and homeowners insurance.

Setting default values for the mortgagecalculator.org embeddable calculator

The tool updates the embed code as you change these settings. If you serve visitors outside the US, you can also add a language parameter to the code. For example, &lang=en-GB uses UK settings, while &lang=de-DE uses German settings.

Once you’re happy with the settings, copy the generated code.

Copy the generated HTML code

Next, open a post or page in WordPress and add a Custom HTML block. Click ‘Edit HTML’ to add the generated code.

Adding a Custom HTML block

In the popup that appears, paste the mortgage calculator embed code. You’ll then see a preview on the right. If everything looks right, click ‘Update’ to keep your changes.

Pasting the mortgage calculator embed code into a Custom HTML block

Finally, click the ‘Save’ or ‘Update’ button to publish your changes.

Here’s what the calculator looks like on the front end:

The mortgagecalculator.org embed displayed on a WordPress page

Keep in mind that the calculator is hosted on a third-party server, so you can’t restyle it to match your site. It also doesn’t support lead capture.

If you want to display the calculator site-wide, such as in a sidebar or footer, you can use WPCode to insert it.

Method 2: Add a Simple, Responsive Mortgage Calculator

If you want the calculator to live natively in WordPress rather than in an iframe, Responsive Mortgage Calculator is a solid free pick. It has 7,000+ active installs and is actively maintained.

First, let’s install and activate the plugin. Go to Plugins » Add Plugin in your WordPress admin and click ‘Install Now’ in the Responsive Mortgage Calculator plugin box.

Installing the Responsive Mortgage Calculator plugin

If you need help, see our guide on how to install a WordPress plugin.

After you install the plugin, go to Settings » Resp Mortgage Calculator to set your currency, compounding period (how often interest is added to the loan balance), and default interest rate.

Configuring the Responsive Mortgage Calculator settings with a nondollar currency

Click ‘Save Changes’ to keep your settings.

After that, you can add the calculator to any page or post using the [mortgagecalculator] shortcode, or drag it into a widget area.

Adding the Responsive Mortgage Calculator's shortcode

Don’t worry if you can’t see a preview. The shortcode will still work, so you can go ahead and click ‘Save’ or ‘Update’ to make it live.

Now, you can visit your website to see it in action:

The Responsive Mortgage Calculator displayed with a non-dollar currency

Also, there are a few limitations to keep in mind. You can only have one calculator per page, the styling options are basic, and there are no fields for property tax or insurance. It also doesn’t capture leads.

Method 3: Build a Lead-Capturing Mortgage Calculator

If you want to capture leads while visitors use your calculator, WPForms is the best choice. It lets you collect a name and email address along with their calculation. You’ll need the Pro plan or higher, which includes the Calculations addon these templates use.

At WPBeginner, we use WPForms for our own forms and recommend it. You can learn more in our full WPForms review.

Create the Form From a Template

First, let’s install and activate WPForms and enter your license key. If you need help, see our guide on how to install a WordPress plugin.

Installing WPForms in WordPress

Next, go to WPForms » Add New Form and name your mortgage calculator. WPForms have a few mortgage calculator templates:

  • Simple Mortgage Calculator, which is best if you just want a quick monthly payment estimate.
  • Mortgage Calculator, which also shows the total interest paid and annual payment amount.
  • Mortgage Lead Generator, which comes with name and email fields already in place. If you pick it, you can skip the lead capture step below.

If you’d rather use another template, then click a template then click ‘Use Template.’

Finding the mortgage calculator template in WPForms

A popup will prompt you to install and activate the Calculations addon. Click ‘Install and activate.’

Installing and activating Calculations Addon

WPForms will then take you to the drag-and-drop editor. You can see all the customization options on the left panel and a preview on the right.

Mortgage calculator in WPForms editor

This template comes with the calculator fields and formula already set up. You can find the formula by clicking the ‘Monthly Payment’ field and checking under Field Options » Advanced » Formula.

You can leave it as it is if you just want a monthly payment estimate.

The formula in WPForms' mortgage calculator template

Neither template includes property tax or PMI (private mortgage insurance) fields, though. If you want to add them, you’ll first need to add fields for those values to your form.

If you’d rather not build these yourself, Formidable Forms’ Advanced Mortgage Calculator template comes with tax and insurance fields built in.

You can use the Numbers field, which only accepts numeric input, so the formula won’t break if someone types text. Simply drag and drop it from the Add Fields panel to the preview panel. Then, change the Label in the ‘Field Options’ tab.

Adding a tax field

Repeat this step for all the additional fields you need.

Once you’ve added the fields, click the ‘Monthly Payment’ field to set up the new formula. Then, click ‘Generate Formula’ next to the Formula box and describe how you want them included in the calculation.

For example: “Add annual property tax and PMI to the monthly mortgage payment. Divide the annual property tax by 12. Calculate monthly PMI by multiplying the loan amount by the PMI rate and dividing by 12.”

Generating formula to include tax and PMI

Once the AI has generated the formula for you, click ‘Insert Formula.’

Then, click the ‘Validate Formula’ link in the editor to make sure everything works well.

Validating AI-generated formula
Add Lead Capture and Notifications

Both templates already include an Email field. To capture the lead, drag and drop a ‘Name’ field onto the form as well.

Adding a Name field to capture leads in WPForms

Next, let’s switch to the ‘Notifications’ tab and make sure notifications are enabled so you get an email every time someone completes the form.

Enabling WPForms' email notifications

WPForms has anti-spam protection on by default. And since these notifications matter, we’d recommend an SMTP service so they don’t land in spam. See our guide if WordPress isn’t sending emails.

Embed the Calculator

Now it’s time to embed your lead-capturing mortgage calculator.

Click ‘Embed’ in the top menu. You can then add the form to an existing or new page, or copy the shortcode. If you choose ‘Existing Page,’ select the page where you want to embed your calculator in the next popup. This will take you to the page editor.

WPForms embed popup

In the editor, click the ‘+’ button to add the WPForms block. After that, you can select your lead-capturing mortgage calculator from the dropdown.

Adding the WPForms block and selecting the Mortgage Calculator form

WordPress will then load your mortgage calculator in the editor. If you want, you can customize and style your form in the right panel. Click ‘Save’ or ‘Update’ when you’re done.

Customizing WPForms' mortgage calculator

See our guide on adding a shortcode in WordPress if you prefer using a shortcode.

That’s it! You’ve successfully built a lead-capturing mortgage calculator:

Before you share the page, run a test calculation yourself and check that the entry appears under WPForms » Entries and that the notification email arrives.

Example of a lead-capturing mortgage calculator built with WPForms

If you want property tax, insurance, and PMI pre-built rather than added with Generate Formula, Formidable Forms’ Advanced Mortgage Calculator template includes them. See our Formidable Forms Calculators page for details.

FAQ: Add a Mortgage Calculator in WordPress

What elements are essential for a mortgage calculator?

A basic mortgage calculator needs the loan amount (home price or mortgage amount), interest rate (annual percentage), loan term (for example, 15 or 30 years), and a way to calculate and show the monthly payment. Some calculators also include fields for property tax, insurance, or HOA fees, but those are optional.

Can I change the currency from dollars?

Yes, all three methods can support other currencies, but the process is different. With the free embed, add a language code such as &lang=en-GB to the embed code. With Responsive Mortgage Calculator, you can set the currency under Settings » Resp Mortgage Calculator.

With WPForms, go to WPForms » Settings, open the ‘Payments’ tab, and choose your currency from the dropdown. Calculated fields use that setting.

Does this work with Elementor or other page builders?

Yes. You can paste the shortcode or embed code into your page builder’s Shortcode or HTML widget.

We hope this article helped you learn how to add a mortgage calculator in WordPress. Looking to make your real estate site even better? These handpicked resources can help:

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

12 CommentsLeave a Reply

  1. It is possible to change dollars to another currency in the calculator. E.g. CZK (Czech crown)?

    • WPForms does allow you to change currencies, you would need to check with WPForms’ support for the current currencies available :)

      Admin

      • Thank you for the advice. If possible, I will definitely contact support to find out how to switch the currency. Unfortunately, in the Czech Republic, no one would want to use a calculator with dollars. Thank you very much for your response and guidance.

  2. Nice article to add a mortgage calculator bin WordPress. Having a mortgage calculator is really beneficial to a financial blogs and others related websites as visitors don’t have to visit a different site to get a mortgage calculation, that’s all in one experience for users make them stay more.
    But I want to ask if custom CSS code can be applied to the calculator and make it more appealing ?

    • I use WP Forms and when I make forms it allows you to set your own CSS. There is a pretty good guide on how to do this directly on the WP Forms website, where I also drew advice. Be sure to check it out and you’ll learn a lot about how to personalize forms for yourself.

  3. Hi there, I want to know if the currency in a different country will affect the mortgage calculator? I see in the screenshots only $, but I would like it to be South African Rand (R), will that be possible?

    • Changing the currency should not cause an issue, if you reach out to Formidable Forms’ support they can assist you with any questions you may have about how to set it up.

      Admin

  4. Hi. Since we work with different banks and each of them have their own amount of interest rates, is it possible to have an option for the clients to select their preferred bank based on their interest rate or can I only use 1 specific predefined interest rate?

    • You would want to reach out to the plugin’s support for the specifics and you could likely set that up how you are wanting.

      Admin

    • Depending on the theme it could have some effect, but it shouldn’t be a large effect

      Admin

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.