Mortgage · Calculation
HECM reverse mortgage worksheet
Use the 2026 HUD claim limit and published principal-limit factors to model available funds, set-asides and estimated payments for the supplied household scenario.
Example result · age: 72 See output
- Cost per success
- 2 calculation credits
- Production plans
- Standard, Business, Scale, Enterprise
Plan allowances - Free sandbox
- Not available
Integration example
Make a request
Use a production key scoped to hecm-reverse-mortgage.
Keep the key on your server. A successful call uses 2 calculation credits.
Set HT_PRODUCTION_KEY on your server. Save as example.mjs and run node example.mjs with Node.js 18 or later.
import { randomUUID } from "node:crypto";
const key = process.env.HT_PRODUCTION_KEY;
if (!key) throw new Error("Set HT_PRODUCTION_KEY on your server.");
const endpoint = "https://calc.hasstechapi.com/v2/calc/hecm-reverse-mortgage";
const input = {
"borrowerAge": 72,
"eligibleNonBorrowingSpouseAge": 72,
"homeValue": 500000,
"existingMortgage": 50000,
"expectedRate": 6,
"otherClosingCosts": 2000,
"repairSetAside": 3000,
"propertyChargeSetAside": 1000,
"servicingFeeSetAside": 500
};
const requestId = process.env.HT_REQUEST_ID || Date.now() + "." + randomUUID();
// Keep this ID to look up usage if the connection is interrupted.
console.error("Usage lookup ID:", requestId);
const response = await fetch(endpoint, {
method: "POST",
redirect: "error",
headers: {
"Authorization": "Bearer " + key,
"Content-Type": "application/json",
"Idempotency-Key": requestId
},
body: JSON.stringify(input)
});
if (!response.ok) {
const problem = await response.json().catch(() => null);
const code = problem?.error?.code || response.statusText;
const delay = response.headers.get("retry-after");
if (delay) console.error("Retry-After (seconds):", delay);
console.error("HTTP " + response.status + " " + code + ". Usage lookup ID: " + requestId);
if (Array.isArray(problem?.error?.details)) {
for (const issue of problem.error.details) console.error("Input issue:", JSON.stringify(issue));
}
process.exitCode = 1;
} else {
console.log(JSON.stringify(await response.json(), null, 2));
} cURL (shell)
(
set -eu
: "${HT_PRODUCTION_KEY:?Set HT_PRODUCTION_KEY on your server}"
request_id="${HT_REQUEST_ID:-}"
if [ -z "$request_id" ]; then
request_id=$(python3 -c 'import time, uuid; print(str(time.time_ns() // 1000000) + "." + str(uuid.uuid4()))')
fi
printf 'Usage lookup ID: %s\n' "$request_id" >&2
# On INVALID_INPUT, read error.details in the JSON response body.
curl --disable --silent --show-error --fail-with-body --include \
--request POST 'https://calc.hasstechapi.com/v2/calc/hecm-reverse-mortgage' \
--header "Authorization: Bearer $HT_PRODUCTION_KEY" \
--header 'Content-Type: application/json' \
--header "Idempotency-Key: $request_id" \
--data-binary @- <<'HT_INPUT'
{
"borrowerAge": 72,
"eligibleNonBorrowingSpouseAge": 72,
"homeValue": 500000,
"existingMortgage": 50000,
"expectedRate": 6,
"otherClosingCosts": 2000,
"repairSetAside": 3000,
"propertyChargeSetAside": 1000,
"servicingFeeSetAside": 500
}
HT_INPUT
) If your request fails
400 INVALID_INPUT-
Read
error.detailswhen present. Node prints each issue. cURL returns the JSON body. Eachpathpoints into your request. An empty path refers to the whole body.Check the accepted inputs for required fields, units and ranges. Send the corrected JSON as a new request.
401or403- Check that the server has the bearer key for the endpoint’s environment and that the key includes
hecm-reverse-mortgage. 429- Read the service error code, check your allowance, and wait for the
Retry-Afterinterval when supplied before trying again. - Lost response,
409or503 - Open Request lookup, select the same environment and enter the printed usage lookup ID. A settled ID has already consumed credits. To retry the same calculation, set
HT_REQUEST_IDto the original ID and reuse the same inputs. A settled request does not return its result again. Unset the variable for a new request, which can consume credits.
The usage lookup ID is the Idempotency-Key your server sends. The response’s x-request-id identifies the HTTP exchange for support.
Output
Example result
These values come from running this operation on the example inputs.
age- 72
borrowerAge- 72
eligibleNonBorrowingSpouseAge- 72
How to interpret this result
- Model uses the HUD October 2017 principal-limit factors and 2026 maximum claim amount of $1,249,125. Counseling, eligibility, underwriting and individualized offers are outside the calculation.
Full example response (JSON)
{
"status": "available",
"result": {
"age": 72,
"borrowerAge": 72,
"eligibleNonBorrowingSpouseAge": 72,
"usesEligibleNonBorrowingSpouseAge": false,
"ageWasCapped": false,
"expectedRate": 6,
"selectedExpectedRate": 6,
"rateWasFloored": false,
"rateWasCapped": false,
"homeValue": 500000,
"hecmLimitYear": 2026,
"hecmLimit": 1249125,
"maximumClaimAmount": 500000,
"homeValueCappedByLimit": false,
"principalLimitFactor": 0.416,
"principalLimit": 208000,
"initialMip": 10000,
"annualMipRate": 0.005,
"originationFee": 6000,
"otherClosingCosts": 2000,
"totalUpfrontCosts": 18000,
"existingMortgage": 50000,
"repairSetAside": 3000,
"propertyChargeSetAside": 1000,
"servicingFeeSetAside": 500,
"mandatoryPayoffsAndCosts": 71000,
"restrictedSetAsides": 1500,
"totalCommitted": 72500,
"netPrincipalLimit": 135500,
"initialDisbursementBase": 124800,
"initialDisbursementLimit": 124800,
"cashAvailableFirstYear": 53800,
"remainingLineOfCredit": 81700,
"cashFromBorrower": 0,
"startingLoanBalance": 124800,
"firstYearAnnualMipEstimate": 624,
"tenureMonths": 336,
"monthlyTenureEstimate": 876.7067909172,
"ageSensitivity": [
{
"age": 72,
"principalLimitFactor": 0.416,
"principalLimit": 208000,
"cashAvailableFirstYear": 53800,
"monthlyTenureEstimate": 876.7067909172
},
{
"age": 77,
"principalLimitFactor": 0.46,
"principalLimit": 230000,
"cashAvailableFirstYear": 67000,
"monthlyTenureEstimate": 1101.0268557217
},
{
"age": 82,
"principalLimitFactor": 0.511,
"principalLimit": 255500,
"cashAvailableFirstYear": 82300,
"monthlyTenureEstimate": 1439.4071550958
}
]
},
"formulaVersion": "hecm-reverse-mortgage-htcalc-719df2c0e105",
"units": {
"principalLimitFactor": "ratio",
"maximumClaimAmount": "USD",
"principalLimit": "USD",
"initialMip": "USD",
"originationFee": "USD",
"cashAvailableFirstYear": "USD",
"monthlyTenureEstimate": "USD/month"
},
"assumptions": [
"Model uses the HUD October 2017 principal-limit factors and 2026 maximum claim amount of $1,249,125. Counseling, eligibility, underwriting and individualized offers are outside the calculation."
],
"warnings": [],
"creditCost": 2
}Request contract
Accepted inputs
Fields for this example. Expand the schema for all supported combinations and limits.
FieldType, units and limits
borrowerAgeRequiredBorrower age in years; the HUD table ends at 99
Min 62 · Max 120eligibleNonBorrowingSpouseAgeOptionalAge in years; supplied only for an eligible non-borrowing spouse
Min 18 · Max 120homeValueRequiredPositive US dollars
Min 0.01 · Max 1000000000existingMortgageRequiredUS dollars
Min 0 · Max 1000000000expectedRateRequiredAnnual expected mortgage interest rate in percent
Min 0.01 · Max 50otherClosingCostsRequiredUS dollars
Min 0 · Max 1000000000repairSetAsideRequiredUS dollars
Min 0 · Max 1000000000propertyChargeSetAsideRequiredUS dollars
Min 0 · Max 1000000000servicingFeeSetAsideRequiredUS dollars
Min 0 · Max 1000000000Example request body (JSON)
{
"borrowerAge": 72,
"eligibleNonBorrowingSpouseAge": 72,
"homeValue": 500000,
"existingMortgage": 50000,
"expectedRate": 6,
"otherClosingCosts": 2000,
"repairSetAside": 3000,
"propertyChargeSetAside": 1000,
"servicingFeeSetAside": 500
} Full JSON schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"borrowerAge": {
"type": "integer",
"minimum": 62,
"maximum": 120,
"description": "Borrower age in years; the HUD table ends at 99"
},
"eligibleNonBorrowingSpouseAge": {
"type": "integer",
"minimum": 18,
"maximum": 120,
"description": "Age in years; supplied only for an eligible non-borrowing spouse"
},
"homeValue": {
"type": "number",
"minimum": 0.01,
"maximum": 1000000000,
"description": "Positive US dollars"
},
"existingMortgage": {
"type": "number",
"minimum": 0,
"maximum": 1000000000,
"description": "US dollars"
},
"expectedRate": {
"type": "number",
"minimum": 0.01,
"maximum": 50,
"description": "Annual expected mortgage interest rate in percent"
},
"otherClosingCosts": {
"type": "number",
"minimum": 0,
"maximum": 1000000000,
"description": "US dollars"
},
"repairSetAside": {
"type": "number",
"minimum": 0,
"maximum": 1000000000,
"description": "US dollars"
},
"propertyChargeSetAside": {
"type": "number",
"minimum": 0,
"maximum": 1000000000,
"description": "US dollars"
},
"servicingFeeSetAside": {
"type": "number",
"minimum": 0,
"maximum": 1000000000,
"description": "US dollars"
}
},
"required": [
"borrowerAge",
"homeValue",
"existingMortgage",
"expectedRate",
"otherClosingCosts",
"repairSetAside",
"propertyChargeSetAside",
"servicingFeeSetAside"
]
}Production endpoint: POST https://calc.hasstechapi.com/v2/calc/hecm-reverse-mortgage
Formula: hecm-reverse-mortgage-htcalc-719df2c0e105
Method and sources
Calendar-year 2026 HUD maximum claim amount and HUD principal-limit factors for loans assigned on/after 2017-10-02. Entered ages and set-asides; estimated disbursement is not an offer.
Reviewed .