Margin, ROAS, ROI and salary calculator

Three tools in one: e-commerce margin and break-even ROAS, investment ROI and annualized return, and salary-to-hourly conversion that accounts for paid time off.

Margin, ROI & salary-to-hourly calculator

Formulas

Margin tab: profit before ads = price − cost − (price × platform fee) − shipping; net profit = profit before ads − ad cost per order; net margin = net profit ÷ price; markup = (price − cost) ÷ cost; break-even ROAS = price ÷ profit before ads × 100%. ROI tab: ROI = (returned − invested) ÷ invested; CAGR = (returned ÷ invested)^(1 ÷ years) − 1. Salary tab: everything is converted to an annual figure, then divided by 12 or 52; hourly pay is shown over 52 weeks and over the weeks you actually work after paid time off.

Using the numbers

If your ad campaign's ROAS is below break-even ROAS, every sale loses money — at a break-even of 250%, each $1 of ads must bring at least $2.50 in sales. Margin and markup are easy to confuse when pricing; showing both prevents underpricing. Investments held for different lengths of time cannot be compared by ROI alone; CAGR puts them on a per-year basis. When comparing a salaried job with freelance rates, the hourly rate for hours actually worked is the fairer comparison.

Caveats

Margin results ignore returns, sales tax and payment processing differences unless you include them in fees. ROI ignores taxes, costs and interim cash flows. Salary figures are gross, before income tax and payroll deductions.

Results are estimates for planning, not investment or lending advice. Inputs never leave your browser — nothing is sent to or stored on our server.

Frequently asked questions

What is the difference between margin and markup?
Margin divides profit by price; markup divides profit by cost. Markup is always the larger number.
What is break-even ROAS?
The return on ad spend at which ad costs exactly use up your profit. Below it, ads lose money.
ROI or CAGR?
Use CAGR to compare investments held for different periods.
How is hourly pay calculated?
Annual pay divided by hours per week times 52, and separately by the weeks actually worked after paid time off.
Is my data stored?
No. Inputs never leave your browser.

More calculators