Investment · Calculation
Cap rate from income or direct NOI
Builds an annual scenario from income, vacancy, expenses and recurring capex, or accepts a direct annual NOI. The band divides selected NOI by caller-entered capitalization rates to estimate a scenario price range.
This HT Calc screen includes a Pro sample for visitors.
Example result · state: available See output
- Cost per success
- 10 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 investor-cap-rate-model.
Keep the key on your server. A successful call uses 10 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/investor-cap-rate-model";
const input = {
"asOfDate": "2026-01-01",
"propertyPrice": 400000,
"propertySubtype": "multifamily",
"grossRentalIncome": 48000,
"vacancyRate": 5,
"otherIncome": 2400,
"operatingExpenses": 16000,
"recurringCapex": 2000,
"noiDirect": 0,
"useDirectNoi": false,
"includeRecurringCapexInNoi": true,
"capRateLowPct": 5,
"capRateHighPct": 8
};
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/investor-cap-rate-model' \
--header "Authorization: Bearer $HT_PRODUCTION_KEY" \
--header 'Content-Type: application/json' \
--header "Idempotency-Key: $request_id" \
--data-binary @- <<'HT_INPUT'
{
"asOfDate": "2026-01-01",
"propertyPrice": 400000,
"propertySubtype": "multifamily",
"grossRentalIncome": 48000,
"vacancyRate": 5,
"otherIncome": 2400,
"operatingExpenses": 16000,
"recurringCapex": 2000,
"noiDirect": 0,
"useDirectNoi": false,
"includeRecurringCapexInNoi": true,
"capRateLowPct": 5,
"capRateHighPct": 8
}
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
investor-cap-rate-model. 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.
state- available
formulaVersion- cap-rate-2.0.0
value.propertySubtype- multifamily
Result warnings
- Annual user-entered scenario values were allocated evenly across 12 synthetic monthly periods; no observed T-12 actuals were provided.
How to interpret this result
- Builds an annual scenario from income, vacancy, expenses and recurring capex, or accepts a direct annual NOI. The band divides selected NOI by caller-entered capitalization rates to estimate a scenario price range.
Full example response (JSON)
{
"status": "available",
"result": {
"state": "available",
"fieldErrors": {},
"warnings": [
{
"code": "synthetic-monthly-allocation",
"severity": "info",
"message": "Annual user-entered scenario values were allocated evenly across 12 synthetic monthly periods; no observed T-12 actuals were provided."
}
],
"assumptions": [],
"provenance": [
{
"source": "Declared NOI identity and direct-capitalization inversion",
"asOf": "2026-08-13"
}
],
"formulaVersion": "cap-rate-2.0.0",
"ruleVersions": [
"NOI=GPI-vacancy+other-income-operating-expenses-selected-recurring-capex-policy"
],
"auditTrail": [
"Allocated annual user-entered scenario values evenly across 12 synthetic monthly period(s); these are not observed T-12 actuals.",
"Synthetic scenario period labels: 2025-02 through 2026-01.",
"Recurring capex policy: included in NOI.",
"Valuation inverted NOI across 5%–8%."
],
"value": {
"propertySubtype": "multifamily",
"selectedNoi": "30000",
"selectedCapRatePct": "7.5",
"inPlace": {
"grossPotentialIncome": "48000",
"vacancyLoss": "2400",
"otherIncome": "2400",
"operatingExpenses": "16000",
"recurringCapex": "2000",
"noi": "30000",
"capRatePct": "7.50000000000000012",
"normalizedFromMonths": 12
},
"stabilized": null,
"directNoi": "0",
"directVsDerivedDifference": "-30000",
"includeRecurringCapexInNoi": true,
"valuationRange": {
"low": "375000",
"high": "600000",
"lowCapRatePct": "5",
"highCapRatePct": "8"
}
}
},
"formulaVersion": "cap-rate-2.0.0",
"units": {
"propertyPrice": "USD",
"incomeAndExpenseInputs": "USD per year",
"capRateLowPct": "annual percent",
"capRateHighPct": "annual percent",
"vacancyRate": "percent of scheduled rent",
"selectedNoi": "USD per year",
"selectedCapRatePct": "annual percent",
"valuationRange": "USD implied by caller cap rates"
},
"assumptions": [
"Builds an annual scenario from income, vacancy, expenses and recurring capex, or accepts a direct annual NOI. The band divides selected NOI by caller-entered capitalization rates to estimate a scenario price range."
],
"warnings": [
"Annual user-entered scenario values were allocated evenly across 12 synthetic monthly periods; no observed T-12 actuals were provided."
],
"creditCost": 10
}Request contract
Accepted inputs
Fields for this example. Expand the schema for all supported combinations and limits.
FieldType, units and limits
asOfDateRequiredGregorian calendar date, YYYY-MM-DD.
Format: date · Min length 10 · Max length 10propertyPriceRequiredAcquisition price, in USD.
Min 0.01 · Max 1000000000propertySubtypeRequiredgrossRentalIncomeRequiredScheduled rental income before vacancy, in USD per year.
Min 0 · Max 1000000000vacancyRateRequiredUncollected share of scheduled rent, in percent (5 means 5%).
Min 0 · Max 100otherIncomeRequiredOther property income, in USD per year.
Min 0 · Max 1000000000operatingExpensesRequiredOperating expenses excluding the separate recurring capex input, in USD per year.
Min 0 · Max 1000000000recurringCapexRequiredRecurring capital expenditures, in USD per year.
Min 0 · Max 1000000000noiDirectRequiredDirect net operating income when selected, in signed USD per year.
Min -1000000000 · Max 1000000000useDirectNoiRequiredincludeRecurringCapexInNoiRequiredcapRateLowPctRequiredLower annual capitalization rate entered for the implied price range, in percent.
Min 0.01 · Max 100capRateHighPctRequiredUpper annual capitalization rate entered for the implied price range, in percent.
Min 0.01 · Max 100Example request body (JSON)
{
"asOfDate": "2026-01-01",
"propertyPrice": 400000,
"propertySubtype": "multifamily",
"grossRentalIncome": 48000,
"vacancyRate": 5,
"otherIncome": 2400,
"operatingExpenses": 16000,
"recurringCapex": 2000,
"noiDirect": 0,
"useDirectNoi": false,
"includeRecurringCapexInNoi": true,
"capRateLowPct": 5,
"capRateHighPct": 8
} Full JSON schema
{
"type": "object",
"properties": {
"asOfDate": {
"type": "string",
"format": "date",
"minLength": 10,
"maxLength": 10,
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Gregorian calendar date, YYYY-MM-DD."
},
"propertyPrice": {
"type": "number",
"minimum": 0.01,
"maximum": 1000000000,
"description": "Acquisition price, in USD."
},
"propertySubtype": {
"enum": [
"single-family-rental",
"multifamily",
"retail",
"industrial",
"office"
]
},
"grossRentalIncome": {
"type": "number",
"minimum": 0,
"maximum": 1000000000,
"description": "Scheduled rental income before vacancy, in USD per year."
},
"vacancyRate": {
"type": "number",
"minimum": 0,
"maximum": 100,
"description": "Uncollected share of scheduled rent, in percent (5 means 5%)."
},
"otherIncome": {
"type": "number",
"minimum": 0,
"maximum": 1000000000,
"description": "Other property income, in USD per year."
},
"operatingExpenses": {
"type": "number",
"minimum": 0,
"maximum": 1000000000,
"description": "Operating expenses excluding the separate recurring capex input, in USD per year."
},
"recurringCapex": {
"type": "number",
"minimum": 0,
"maximum": 1000000000,
"description": "Recurring capital expenditures, in USD per year."
},
"noiDirect": {
"type": "number",
"minimum": -1000000000,
"maximum": 1000000000,
"description": "Direct net operating income when selected, in signed USD per year."
},
"useDirectNoi": {
"type": "boolean"
},
"includeRecurringCapexInNoi": {
"type": "boolean"
},
"capRateLowPct": {
"type": "number",
"minimum": 0.01,
"maximum": 100,
"description": "Lower annual capitalization rate entered for the implied price range, in percent."
},
"capRateHighPct": {
"type": "number",
"minimum": 0.01,
"maximum": 100,
"description": "Upper annual capitalization rate entered for the implied price range, in percent."
}
},
"required": [
"asOfDate",
"propertyPrice",
"propertySubtype",
"grossRentalIncome",
"vacancyRate",
"otherIncome",
"operatingExpenses",
"recurringCapex",
"noiDirect",
"useDirectNoi",
"includeRecurringCapexInNoi",
"capRateLowPct",
"capRateHighPct"
],
"additionalProperties": false,
"description": "Builds an annual scenario from income, vacancy, expenses and recurring capex, or accepts a direct annual NOI. The band divides selected NOI by caller-entered capitalization rates to estimate a scenario price range."
}Production endpoint: POST https://calc.hasstechapi.com/v2/calc/investor-cap-rate-model
Formula: cap-rate-2.0.0