Calculate gross profit, profit margin and markup from your cost and selling price, or work backwards from a target margin to find the price you should charge.

$
$
%
Profit margin %
Gross profit
Markup
Selling price
Cost
Margin = (price − cost) / price. Markup = (price − cost) / cost. In target-margin mode the price is found with cost / (1 − margin).

About Profit Margin Calculator

The profit margin calculator works in two directions. Give it your cost and selling price and it returns the gross profit, profit margin and markup. Or give it your cost and a target margin, and it works backwards to the selling price you should charge.

The definitions matter: margin = (price − cost) ÷ price, measured against revenue, while markup = (price − cost) ÷ cost, measured against what you paid. In target-margin mode the price is derived with cost ÷ (1 − margin), the standard reverse-margin formula.

It is a quick pricing check for retailers, freelancers and e-commerce sellers — useful whenever you need to price a product for a desired margin or audit how profitable an existing price really is.

How to use Profit Margin Calculator

  1. Choose a mode: “Cost and price” to find margin and markup, or “Cost and target margin” to find the selling price.
  2. Enter your cost — what the product or service costs you.
  3. Enter the selling price, or the desired margin percentage, depending on the mode.
  4. Read the profit margin, gross profit and markup, or the computed selling price.

Frequently asked questions

Margin divides profit by the selling price; markup divides the same profit by the cost. A $50 cost sold at $100 is a 50% margin but a 100% markup — mixing them up underprices products.

Switch to target-margin mode, enter your cost and 40%. The tool computes price = cost ÷ (1 − 0.40). For a $60 cost, that is $100 — not the $84 you would get by adding 40% markup.

Gross. The calculation compares selling price to direct cost only. Overheads, shipping, payment fees and taxes are not deducted, so your net margin will be lower than the figure shown.

Because price = cost ÷ (1 − margin), a 100% margin would require dividing by zero — an infinite price. Real margins on goods with any cost are always below 100%.

Yes. Treat your delivery cost — hours times your internal rate, plus expenses — as the cost, and your fee as the selling price. The margin and markup math is identical.

Need help?
Found an issue with this tool? Let our team know.
Report an issue

Add this free tool to your own website — copy and paste the code below.