Margin & markup
Margin is profit over price; markup is profit over cost. Solve either way.
Margin & markup, worked
Arithmetic only — not tax, accounting, legal or investment advice. Check against current rules.
Where these numbers come from.
Negatives are parenthesized because that’s what a statement does. The rest is four promises.
Minor units, never floats
Amounts are integers in the currency's smallest unit, end to end. A float never touches a cent.
Rounded in the right place
Rounded where an invoice or a ledger would round, never operand by operand, so a split still sums to the whole. A tool that rounds each period says so.
Unit tested
The arithmetic lives in one unit-tested module, and the extension uses the same one.
No network
There is no request to make. What you type stays in this tab and is gone when you close it.
More in money math
- VAT / sales taxAdd tax to a net price or back it out of a gross one, and the parts still add up.
- FX conversion & gain/lossConvert at your policy rate and measure the FX gain or loss.
- Penny-exact allocationSplit 100.00 three ways and get 33.34 / 33.33 / 33.33, with nothing left in suspense.
- NPV, IRR & XIRRNPV, payback and every IRR a series has, not just the first a solver finds.
- Effective vs nominal rateTurn a nominal rate into the effective annual rate it compounds to.
Read it in context
- Founder guide · 6 minHow to read an income statement (P&L)Revenue, cost of revenue, gross margin, operating expenses and net income, read line by line, on accrual basis, with the mistakes founders make most.
- Founder guide · 6 minChart of accounts for startups: a starting templateA starting chart of accounts for a US startup: number ranges, the expense accounts you need, and when to add an account versus a class or tracking tag.
- Founder guide · 5 minCash vs accrual accounting for startups, and the IRS ruleCash or accrual for a startup: why investors and auditors read accrual, when the IRS lets a C-corp file on cash, and the 2026 gross receipts limit.
Learn what it computes
- Accounting · Lesson 17 · 10 minInventory and cost of goods soldOctober's drills, costed FIFO and by weighted average, counted against the record, and written down to what they will sell for.
- Accounting · Lesson 10 · 10 minThe income statementTwo of the five account types, laid out so each subtotal answers a different question about how the month went.
- Finance · Lesson 2 · 10 minDefault alive or default deadWhether Northwind reaches profit on the cash it has: alive as it stands, and a hiring decision that turns on one growth rate.
The same number, elsewhere.
A calculator answers the question once. These carry the answer into a product, name what it computed, and argue the method.
- ComponentMetricDefinitionEvery metric requires one. Formula with values substituted.
- ComponentKpiCardMetric + delta + optional sparkline.
- ComponentBudgetVsActualPolarity-aware, materiality-filtered, versions tracked.
- TermGross marginGross margin is a profitability metric, calculated as (Revenue − COGS) ÷ Revenue.
- TermContribution marginContribution margin is a profitability metric, calculated as (Revenue − Variable costs) ÷ Revenue.
- TermNet marginNet margin is a profitability metric, calculated as Net income ÷ Revenue.
- TermGross profitNet revenue less cost of revenue, as an amount
- DocMetric definitionsEvery metric in this system ships with its formula, period, inputs and source. A KPI without a definition is a number people argue about in meetings.
- EntryJournal entry for a sale on accountFor a sale on credit, debit Accounts receivable and credit Revenue for the price; under a perpetual inventory system also debit Cost of goods sold and credit Inventory for what the goods cost. When the customer pays, debit Cash and credit Accounts receivable.
- DocCurrency decimal placesHow many decimals each ISO 4217 code is stored at — JPY 0, USD 2, KWD 3.