Margin Calculator

All Tools

/

Free Margin Calculator

Enter your cost and either the margin you want or the price you charge. The calculator fills in the rest.

Use the calculator to

  • find the selling price that hits a target margin
  • see the margin a price you already charge is producing
  • check whether a quote still covers what the work costs
  • compare products, services or clients on the same basis

How the fields work

Cost: what the product or the work costs you
Margin: profit as a percentage of the selling price
Revenue: the selling price
Profit: revenue minus cost

Fill in any two and the others follow. Keep cost and price both gross or both net, never mixed.

margin formula

The profit margin formula

Margin = (revenue − cost) ÷ revenue × 100  
A $40 cost and a $50 price leave $10 of profit, so a margin of 20 %. Backwards from a target: price = cost ÷ (1 − margin ÷ 100), so a 40 % margin on $40 needs $66.67.   Three margins, three costs. Same formula, different costs going in.
  • Gross margin: the direct cost of the goods or the work
  • Operating margin: plus rent, tools and salaries
  • Net margin: everything, including tax and interest
Margin is not markup, which measures the same profit against cost. The markup calculator converts between the two.
Margin starts with knowing the cost.

In a service business, cost is hours. TimeTac shows what each project actually took. Try it free for 30 days.

Frequently asked questions.

Margin = (revenue − cost) ÷ revenue × 100. At a cost of $40 and a price of $50, the margin is 20 %.
Gross margin counts only the direct cost of what you sell. Net margin subtracts everything else as well, including overhead, tax and interest, so it is always the lower of the two.
Divide the cost by one minus the margin as a decimal. A $40 cost at a 30 % target margin gives $40 ÷ 0.7, so $57.14.
It depends entirely on the industry and on what you count as cost. Comparisons only hold between businesses that draw the line in the same place, which is why gross, operating and net margins are never mixed in the same table.
Margin is profit as a share of the selling price, and profit cannot be larger than the price it came from. Markup has no such limit.
early joins timetac

Were you heading to early.app? You are in the right place. EARLY is part of TimeTac now.

Read more