Margin & Markup API
Pricing and profitability maths as an API. The margin endpoint solves the relationships between unit cost, selling price, gross margin (a percentage of the price), markup (a percentage of the cost) and profit — give it any two of these and it works out all the rest. Price a product from a target margin, find the true margin of an existing price, convert a markup into a margin (they are not the same — the same price always has a lower margin than markup), or back out a cost from a price and markup. The breakeven endpoint computes how many units, and how much revenue, you need to sell to cover your fixed costs, given a unit price and a variable cost per unit, and returns the contribution margin and contribution-margin ratio. Negative results are reported honestly so a loss-making price is obvious. Everything is computed locally and deterministically, so it is instant and private. Ideal for e-commerce and retail pricing, quoting and sales tooling, finance and FP&A, marketplaces and POS systems, and unit-economics modelling. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints. This is pricing maths; for everyday percentage operations use a percentage API and for loan and interest maths use a finance-calculator API.
api.oanor.com/margin-api