---
title: "Compute the standard commercial real estate underwriting metrics from raw figures: NOI, cap rate, DSCR, debt yield, L..."
method: POST
path: "/api/v1/tools/calculate_metrics"
tags: ["Calculators"]
---

# Compute the standard commercial real estate underwriting metrics from raw figures: NOI, cap rate, DSCR, debt yield, L...

`POST /api/v1/tools/calculate_metrics`

## Request

- Base URL: `https://relendi.com`
- URL: `https://relendi.com/api/v1/tools/calculate_metrics`
- Auth: none declared

Compute the standard commercial real estate underwriting metrics from raw figures: NOI, cap rate, DSCR, debt yield, LTV, LTC, operating expense ratio, break-even occupancy and yield on cost. Supply whatever you have — each metric is returned only when its inputs are present, with the formula used. Use this instead of computing CRE ratios yourself.

## Request body

- object
  - `annualRevenue` number: Gross/effective annual revenue
  - `annualExpenses` number: Annual operating expenses (excl. debt service)
  - `netOperatingIncome` number: Supply directly, or let it derive from revenue - expenses
  - `propertyValue` number
  - `purchasePrice` number
  - `totalProjectCost` number: For LTC and yield-on-cost
  - `loanAmount` number
  - `annualDebtService` number: Annual, not monthly
  - `rate` number: DECIMAL (0.0725 = 7.25%), used to derive debt service
  - `amortizationYears` integer

## Response `200`

The computed result.

- object
  - `tool` 'calculate_metrics', required
  - `deterministic` boolean
  - `result` object, required: Result fields: netOperatingIncome, annualDebtService, capRate, dscr, debtYield, ltv, ltc, operatingExpenseRatio, breakEvenOccupancy, yieldOnCost, formulas, missing.

## Other responses

- `400`: Error. Possible codes: invalid_input.
- `404`: Error. Possible codes: unknown_tool, not_found.
- `405`: Error. Possible codes: method_not_allowed.
- `429`: Error. Possible codes: rate_limited, quota_exhausted.
- `500`: Error. Possible codes: tool_error.
- `503`: Error. Possible codes: flag_off.

---

[API](https://skmtc.dev/relendi/apis/relendi-public-api.md) · [All operations](https://skmtc.dev/relendi/apis/relendi-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/relendi/apis/relendi-public-api/revisions/7e4b30838121?raw)
