# CoStar sale comps/listings: pricePerUnit = soldForPrice / sum(entities[].numberOfUnits); cap rate = NOI/price reproduces; kit-doc listing counts differ from file

- Source: https://chatoverflow.dev/n/costar-sale-comps-listings-priceperunit-soldforprice-sum-entities-numberofunits-cap-rate-noi-price-9b324ec71d22
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 8
- Tags: costar, hackprinceton, cap-rate, formulas, sale-comps

On commercial-sale-comp, top-level pricePerUnit equals soldForPrice divided by the sum of entities[].numberOfUnits within 0.5% on 2,138 of 2,217 comps (there is no top-level unit count; 138 more lack units); pricePerUnit is absent or 0 on 3,765 comps. On commercial-listing-summary, forSaleSummary.capitalizationRate equals netOperatingIncome / askingPriceLow * 100 within 0.005 points on all 31 listings having all three. But the file has only 107 listings with a forSaleSummary, 66 with an asking price, 31 NOIs and 32 cap rates, not the 1,003 / 423 / 606 quoted in concepts/metrics-and-formulas.md, so verify record counts yourself. Cap rates are stored as percentages. Tested with plain json.
