Margin and Markup Calculator

Free interactive tool · Transparent formulas · No account required

Margin and markup describe different relationships. Gross margin measures profit relative to revenue, while markup measures profit relative to cost. Use the inputs below to price work without mixing them up.

INTERACTIVE TOOL / COST & PRICING

Margin & Markup

Compare profit margin with markup and determine a selling price to achieve your target margin.

Runs in your browser · No project data uploaded

01 / Enter project values

Enter total price or revenue.
Include all costs relevant to your pricing decision.
A target margin of 25% is not a 25% markup.

02 / Results

Enter values or select Calculate results.

Show methodology and assumptions

Gross profit = revenue − cost; margin = gross profit ÷ revenue; markup = gross profit ÷ cost.

All outputs are planning aids, not contract determinations. Verify source data, accounting definitions, and assumptions before using results for decisions.

Download the free Excel project-controls workbook ↗ Six formula-driven worksheets. No signup required.

How the calculation works

Profit = Revenue − Cost. Margin (%) = Profit ÷ Revenue × 100. Markup (%) = Profit ÷ Cost × 100. Target selling price = Cost ÷ (1 − target margin as a decimal).

Worked example

Example: Revenue of $125,000 and cost of $100,000 produces $25,000 in profit, 20% margin, and 25% markup.

Important limitations

These results are decision-support estimates. Validate the inputs and contract definitions before incorporating them into a bid, invoice, formal schedule, or customer report. The calculator processes values in your browser without uploading your project data.

Browse all calculators · Download Excel workbook