DEV Community

jemst7480-del
jemst7480-del

Posted on

Why I Built a Mortgage Calculator That Doesn't Track You (100% Client-Side)

As developers, we build tools to solve problems. But when I was looking for a mortgage calculator for my own personal use, I noticed a disturbing trend: almost every calculator out there requires you to sign up, give your email, or worse, they track your financial data and sell it to third parties.

That didn't sit right with me. Financial data is deeply personal.

So, I decided to build my own: Smart Mortgage Calc.

Here is why I built it, the tech stack I used, and the challenges of building financial tools in the browser.

The Core Problem: Privacy

When you input your income, your down payment, and your desired loan amount into a standard calculator, where does that data go? Usually, it's sent to a server, stored in a database, and used for targeted advertising.

I wanted to build a tool where the user has absolute trust. The data never leaves your browser.

The Tech Stack

To achieve 100% client-side processing, I kept the stack simple, lightweight, and fast:

  • Vanilla JavaScript: No heavy frameworks like React or Angular. Just pure, fast JS to handle the math.
  • HTML5 & CSS3: For a clean, responsive UI that works perfectly on mobile (since most users access financial tools on their phones).
  • No Backend (for calculations): The math (amortization, extra payments, PMI calculations) is entirely handled by the client's browser.

Key Features Built from Scratch

  1. Standard Amortization Schedule: A full breakdown of principal vs. interest over 30 years.
  2. Extra Payment Simulation: I wanted users to see exactly how much they save by paying an extra $100 or $200 a month. The math for this is complex, but the visualization is powerful.
  3. Discount Points Break-Even Analysis: A feature many people don't understand, so I built a tool to show exactly when buying points makes financial sense.

The SEO & Performance Challenge

Building a financial tool is one thing; getting it discovered is another. Because the app is client-side, I had to rely heavily on Semantic HTML and Schema Markup to help Google understand what the tool does. I also wrote in-depth blog posts to answer specific user questions (like "How much income do I need for a 400k house?").
https://smartmortgagecalc.space/extra-payment

Try It Out

If you are buying a home, refinancing, or just love personal finance, you can check it out here:

👉 smartmortgagecalc.space (No sign-ups, no cookies, just pure math).

I would love to hear your feedback on the UI, the performance, or how I can improve the calculations!

javascript #webdev #privacy #fintech #showdev

Top comments (1)

Collapse
 
codingwithjiro profile image
Elmar Chavez •

Love this! I remember building a web app just because I didn't find the one that suited me and just does the action without me requiring to sign up.