Skip to calculator content

Simple answers to everyday number problems.

Advertisement

All utilities

UTILITY / BUS-07

Profit Margin Calculator

Calculate gross profit, profit margin, and markup from revenue and total costs instantly — or work backwards from a target margin to the price you need to charge. Built for freelancers, small businesses, contractors, and resellers.

Profit, margin, and markup: three different numbers

Profit is the amount left after subtracting the costs you enter from revenue. Profit margin compares that profit with revenue; markup compares it with costs. Both use the same profit amount, but their different denominators give different percentages.

Profit = revenue − costs
Profit margin = (profit ÷ revenue) × 100
Markup = (profit ÷ costs) × 100

Keep revenue and costs on the same basis: one job, one product, or the same reporting period. The result only reflects the costs you include. With cost of goods sold alone, it describes gross profit; it is not automatically net profit after overhead, interest, taxes, and every other expense.

Worked profit and loss examples

A job with $5,000 revenue and $3,500 costs

Profit is $5,000 − $3,500 = $1,500. Margin is $1,500 ÷ $5,000 × 100 = 30%. Markup is $1,500 ÷ $3,500 × 100 ≈ 42.86%. The margin tells you that 30 cents of each revenue dollar remain after the entered costs.

Selling a $60 item for $100

The profit is $40, the margin is 40%, and the markup is about 66.67%. A 40% margin is not a 40% markup: marking up $60 by 40% would set a price of $84 instead.

A loss when costs exceed revenue

With $1,000 revenue and $1,200 costs, profit is −$200, margin is −20%, and markup is about −16.67%. Negative results show a loss relative to the entered costs; they are not a calculation error.

Common pricing mistakes

Using a markup to target a margin

A $100 cost marked up by 30% gives a $130 price and a margin of $30 ÷ $130 × 100 ≈ 23.08%. To target a 30% margin, the pricing equation is $100 ÷ (1 − 0.30), giving about $142.86. Switch the calculator to Price from target margin to solve this automatically: enter the cost and the margin you want, and it shows the price to charge.

Leaving relevant costs out

Materials alone may not represent the cost of a job. Labor, delivery, payment fees, and overhead can affect the amount retained. Decide which costs your comparison should include and apply that definition consistently; the tool cannot detect missing expenses.

Zero values, rounding, and other limits

At zero revenue, profit margin is undefined and appears as a dash. At zero costs, markup is undefined and appears as a dash. A dash does not mean 0%. For example, $0 revenue and $100 costs still show a $100 loss; $100 revenue and $0 costs show $100 profit and 100% margin, but no defined markup.

The inputs support nonnegative amounts, including cents; costs may exceed revenue. Returns, negative revenue, and accounting adjustments are not modeled as separate entries. Currency results show two decimal places and percentages up to two; rounding can make a reverse calculation differ slightly.

This calculation does not establish whether a margin is appropriate for your industry, forecast demand, or determine cash flow. A recorded sale and its accounting profit do not necessarily mean that cash has been collected.

Related tools

Advertisement