What a rental property pays each month, and at the sale.

My interest in property starts with the operating details: a lease that ends, a roof that needs work, a loan that still has to be repaid.

A California real estate license is held. The property questions here are about California, and this is a notebook for my own underwriting. Nothing on it is an appraisal, investment advice, loan qualification or an offer of real estate services.

One property run 414 times, each square a run with its own vacancy and exit cap rate and its area the net present value: solid for a gain, open for a loss. The pigment square, where the two lines cross, is the deal as written.

01 A property in plain numbers

The property, leases and loan are made up, and everything runs in your browser: nothing you type is stored or sent.

Every value below is editable. The JSON download holds the complete source and every calculated scenario.

Property inputs and actions
Edit the property, leases and financing assumptions

The full JSON is the only input source. Edit rent amounts, lease boundaries, renewal booleans, costs, debt and hold period here. All amounts are USD cents: 180000 means $1,800.00. Rates use basis points: 600 means 6%. Loading or resetting replaces all edits.

1 to 12 unique units; 1 to 120 hold months; 0 to 24 capex records; 24,000 source characters. Unknown or missing fields block the run. A lease renews only when it has renewal: true. Source edits invalidate every result and export, including silent edits checked again at each action.

The grid moves vacancy and exit cap this far either side of the values in the source; 100 basis points is one percentage point. Vacancy step 1 to 5,000, exit-cap step 1 to 1,000, whole numbers.

Enable JavaScript to calculate locally. No calculation has run.

Method and limits

Cash, leasing and terminal value

Acquisition occurs at month 0. Operating cash is paid at each month end, with sale after the final month's operation and scheduled debt payment. Lease start and end months are both inclusive. Rent is monthly, without daily proration. Each unit has one lease, and an empty unit stays empty. renewal: true explicitly extends that lease at unchanged rent, without downtime, through hold plus 12 months. Otherwise rent stops after its end month.

Vacancy is a haircut on each active lease's rent, rounded per lease. A month before commencement or after unrenewed expiry already has zero rent. NOI equals collected rent less fixed operating costs and a management fee on collected rent. Reserve allowance and capex are deducted after NOI. The reserve is modeled as a permanent cash allowance, with no asset balance, capex draw or release at sale; entered capex is additional. Neither is a tracked escrow.

Terminal gross value is the next 12 months' total NOI divided by the selected annual exit cap, rounded to cents and floored at zero if NOI is nonpositive. That floor is an arithmetic convention; a loss-making property can still have value. Sale costs are a percentage of gross value. Net equity sale cash deducts those costs and the remaining loan. Capex scheduled after sale is disclosed but neither charged to the seller nor deducted in NOI-based value. Market calibration, inflation, rent escalation, residual land value and a selling-period delay are outside the model.

Debt, equity, NPV and conservative IRR

Interest is the nominal annual loan rate divided by 12 on the opening balance. Interest-only months precede amortization. The fixed amortizing payment is calculated on the original principal over amortizationMonths after the interest-only period; it is not shortened by the IO period. For a zero rate it is principal divided by amortization months. For a positive rate it is P*r / (1-(1+r)^(-n)). The exact rational payment rounds once; monthly interest rounds separately. Principal is capped at remaining balance; the final amortization month clears any rounding residue.

Maturity before sale repays residual principal as a balloon in operating debt service. If maturity and sale coincide, residual debt is paid only from sale after that month's scheduled payment. A hold shorter than the loan term still repays debt at sale. Prepayment fees, refinancing, variable rates, default, negative amortization and lender underwriting are outside the model.

Monthly DSCR is NOI divided by interest plus scheduled principal plus any pre-sale maturity balloon. Hold DSCR divides total hold NOI by total such service. Sale payoff is excluded from those ratios. Zero service produces an undefined ratio. This is a stated cash-flow convention; a lender's covenant may define DSCR differently. Initial equity equals price plus acquisition costs and loan fee, less loan proceeds. Subsequent negative equity cash flows are additional contributions. Unlevered cash excludes loan proceeds, debt service, payoff and loan fee.

NPV discounts each monthly cash flow by the effective monthly rate (1+annualDiscount)^(1/12)-1. Monthly IRR is calculated only with a negative initial flow and nonnegative subsequent flows including at least one positive receipt. Multiple sign changes or other nonconventional patterns abstain. A root must be bracketed between -90% and +100% monthly, then satisfy a numerical residual tolerance. Annual IRR is (1+monthlyIRR)^12-1. Rates outside that bracket abstain even if a mathematical root exists.

Strict input schema and numerical limits

Every shown JSON key is required. Unknown fields, wrong types, missing fields, duplicate record IDs and invalid references fail closed. JSON follows standard parsing: repeated object keys use their last occurrence. Use unique keys for an unambiguous source. Text must be nonblank, single-line, valid Unicode. Names allow 80 characters, source notes 240. IDs allow 24 ASCII letters, digits, dots, underscores or hyphens, starting with a letter or digit. PROPERTY is reserved for property-wide capex.

Root keys: version, name, holdMonths, vacancyBps, exitCapBps, saleCostsBps, annualDiscountBps, acquisition, operating, debt, units, capex. Version must be RE-001/1. Hold: 1..120; lease start/end and capex month: 1..132; end cannot precede start. There are 1..12 unique units and 0..24 capex records. The engine evaluates at most hold plus 12 months. Future records outside that horizon have no modeled effect.

All money inputs are nonnegative integer cents. Purchase price: 1..100,000,000,000 cents; acquisition closing costs: 0..10,000,000,000; fixed monthly costs and monthly reserve: 0..1,000,000,000 each; rent per unit: 0..100,000,000; each capex: 0..10,000,000,000; loan fee: 0..1,000,000,000. Loan principal may not exceed purchase price. Zero principal requires zero rate, IO period and fee.

All input rates are integer basis points, with 100 basis points = 1%. Vacancy, management and sale costs: 0..10000; exit cap: 100..3000; nominal annual debt rate: 0..3000; effective annual discount: 0..5000. Amortization and maturity: 1..480 months; IO: 0..120 and no greater than maturity.

The two grid steps sit beside the JSON. The vacancy step is 1 to 5,000 basis points and the exit-cap step 1 to 1,000, both whole numbers, defaulting to 500 and 100. Each axis is the source value, one step below and one step above, clipped to the input ranges; a value that clips onto another collapses, so a grid can have fewer than nine cells. The download records both steps as sensitivity and replays with RealEstateEngine.workbench(sourceText, sensitivity).

Positive rational amounts use integer arithmetic before multiplication and round to the nearest cent with exact half cents up. The annuity uses an exact integer fraction, including exponentiation. All monetary ledger values remain safe integer cents within these bounds. NPV and IRR use standard binary64 floating point; reported NPV rounds to cents with negative halves away from zero. IRR uses 160 bisection iterations and a residual tolerance of the larger of 0.0001 cents or 1e-10 times total absolute cash flow. Browser and Node final floating-point rates can differ in their last digits.

Sources, checks and limits

Terminology reference: OCC, Commercial Real Estate Lending, version 2.0 (March 2022), printed page 43: DSCR and Value Analysis. DSCR relates NOI to debt service; capitalization relates income and value. The reference supplies the terms only; none of its lending or appraisal criteria are applied here. This notebook's monthly timing, reserve treatment, zero-value floor and IRR restrictions are its own explicit conventions.

The calculation engine and the interface are plain JavaScript with no dependencies. I checked them against hand calculations for an all-cash purchase, zero interest, amortization, lease boundaries, early maturity, sale payoff and negative NOI, and for cash conservation across every scenario.

The model reads only the source above, with no property records, market data or tax treatment. Source notes are whatever text you type. It is a cash-flow calculator. Reloading clears edits, and an export is a complete, unsigned snapshot.