# Mortgage Calculator

Estimate your monthly mortgage payment — principal, interest, property tax, insurance and HOA — plus total interest, total cost and how extra payments shorten the term.

## Run it

- **CLI:** `gizza tool mortgage-calculator 'home_price=400000'`
- **Web:** https://gizza.ai/tools/mortgage-calculator/
- **Agents:** machine-readable descriptor (parameters JSON Schema) at https://gizza.ai/tools/mortgage-calculator/tool.json

## Inputs

- `home_price` — Home price _(field)_
- `down_payment` — Down payment (amount) _(field)_
- `loan_years` — Loan term (years) _(field)_
- `annual_interest_rate_percent` — Interest rate (%) _(field)_
- `annual_property_tax` — Annual property tax _(field)_
- `annual_insurance` — Annual home insurance _(field)_
- `monthly_hoa` — Monthly HOA dues _(field)_
- `extra_monthly_payment` — Extra monthly payment _(field)_
- `decimals` — Decimal places _(field)_

## Output

- Payment breakdown (text)

## Query parameters

Open the tool pre-filled and auto-run via URL:

- `home_price` — Home price
- `down_payment` — Down payment (amount)
- `loan_years` — Loan term (years)
- `annual_interest_rate_percent` — Interest rate (%)
- `annual_property_tax` — Annual property tax
- `annual_insurance` — Annual home insurance
- `monthly_hoa` — Monthly HOA dues
- `extra_monthly_payment` — Extra monthly payment
- `decimals` — Decimal places

Example: `https://gizza.ai/tools/mortgage-calculator/?home_price=400000&down_payment=80000&loan_years=30&annual_interest_rate_percent=6.5&annual_property_tax=4800&annual_insurance=1800&monthly_hoa=0&extra_monthly_payment=0&decimals=2`

---

## About this tool

Estimate a fixed-rate mortgage payment from the home price, down payment, loan
term, and interest rate. The calculator breaks the monthly payment into
principal and interest, property tax, insurance, and HOA dues, then totals the
interest and ownership costs over the payoff period.

Worked example: a `400000` home with an `80000` down payment leaves a `320000`
loan. At `6.5%` over `30` years, the principal-and-interest payment is about
`2022.62` per month before taxes, insurance, or HOA. Add annual tax,
homeowner's insurance, and HOA fields to estimate a fuller PITI-style monthly
housing payment.

Use `extra_monthly_payment` to model additional principal payments. The base
monthly payment stays the scheduled mortgage payment, while the amortization
loop applies the extra amount each month to calculate fewer payoff months and
lower total interest.

Limits and edge cases: this is a deterministic fixed-rate calculator, not loan
advice. It does not include PMI, closing costs, adjustable-rate resets, escrow
rules, tax deductions, late fees, biweekly schedules, or lender-specific
rounding. Enter taxes and insurance as annual amounts; enter HOA as a monthly
amount. The down payment is a currency amount, not a percent.

## FAQ

<details>
<summary>What does the monthly payment include?</summary>

`monthly_payment` includes scheduled principal and interest plus monthly taxes,
insurance, and HOA dues. It does not include the optional
`extra_monthly_payment`; that amount is applied separately to shorten the loan.

</details>

<details>
<summary>Is the down payment a percent?</summary>

No. Enter the down payment as a currency amount. For a 20% down payment on a
`400000` home, enter `80000`.

</details>

<details>
<summary>How are taxes and insurance handled?</summary>

Enter property tax and homeowner's insurance as annual amounts. The calculator
divides each by 12 and includes those monthly amounts in the payment and the
payoff-period totals.

</details>

<details>
<summary>How does an extra monthly payment affect the result?</summary>

The extra payment is applied directly to principal in the amortization loop.
That can reduce `payoff_months` and `total_interest`; the reported scheduled
principal-and-interest payment stays unchanged.

</details>

## Related tools

- [Bitwise Calculator](https://gizza.ai/tools/bitwise-calculator/): Bitwise calculator: AND, OR, XOR, NOT, shifts, rotates and popcount on 8–64-bit integers in binary, hex, octal or decimal. Free, private, in your browser.
- [Bollinger Bands calculator](https://gizza.ai/tools/bollinger-bands/): Compute Bollinger Bands (SMA plus/minus standard deviations) for a price series, plus %B and bandwidth, in your browser. Free, private, no upload.
- [Free Online Calculator](https://gizza.ai/tools/calculator/): Evaluate any arithmetic expression instantly in your browser. Supports +, −, ×, ÷, parentheses and functions. No sign-up, runs offline.
- [Cartesian Product Generator](https://gizza.ai/tools/cartesian-product/): Generate every combination across 2-4 lists (sizes x colors x materials) — or just count them. Paste spreadsheet cells, pick any separator, output lines, CSV, JSON.
- [Chi-square test](https://gizza.ai/tools/chi-square-test/): Run Pearson's chi-square test online: goodness-of-fit or contingency-table independence with statistic, df, p-value and Cramér's V. Free, in-browser, no upload.
