Skip to content

Profit Margin Calculator

Profit margin is the share of the selling price you keep; markup is the share you add to the cost. They are two different percents for the same profit, and mixing them up is the most expensive pricing mistake a small business can make. Work out your margin, set a price from a target margin, or find the highest cost your price can carry.

What do you want to work out?

Find the margin: you know the revenue and the cost, and want the margin and the markup. Set a price: you know the cost and the margin you want, and need the selling price. Find the maximum cost: you know the revenue and the margin you want, and need the highest cost you can afford.

dollars

What the customer pays, for one item or for the whole period, as long as the cost below covers the same thing.

dollars

What the item cost you to buy or make, for the same item or period as the revenue above.

dollars

What the item costs you to buy or make.

percent

From 0 to below 100 percent. A margin of 100 percent or more is impossible on a positive cost.

dollars

What the customer pays. The price is fixed; the question is what cost it can carry.

percent

From 0 to below 100 percent. The margin you want to keep from each dollar of revenue.

Your profit margin

Margin and markup, side by side

What other margins would give

    Your calculation, step by step

      This tool provides estimates for general guidance only. It works out gross profit margin from the figures you enter and does not include overheads, taxes, or fees you did not enter. Check the figures against your own books before setting a price.
      Quick answer: A $100 cost and a $150 price give a profit of $50, a margin of 33.33 percent on revenue and a markup of 50 percent on cost. To price from a target margin, divide the cost by 1 minus the margin: a $12 cost at a 40 percent margin needs a $20.00 price. Enter your own figures above to work out your margin, your price, or your maximum cost.

      Last reviewed: 20 November 2026. Reviewed every 180 days; next review due 19 May 2027.

      How to use the Profit Margin Calculator

      Profit margin answers one question: of every dollar a customer pays you, how much do you keep? If you sell something for $150 that cost you $100, you keep $50, which is 33.33 percent of the price. That is your profit margin. The same $50 is a 50 percent markup on the cost, and the difference between those two numbers is the whole subject of this page. This calculator has three modes, one for each question sellers actually ask, and it shows the margin and the markup side by side so you can never confuse them.

      Everything runs in your browser. Nothing you enter leaves the page, no price is looked up anywhere, and no account or sign-up is needed. The calculator uses only the numbers you type, so the answer is only as good as the cost you enter: include everything the item cost you to buy or make, and read the gross versus net section below before you treat the result as your final profit.

      1. Pick a mode. Find the margin works out the margin and the markup from a revenue and a cost. Set a price finds the selling price that gives you a target margin on a known cost. Find the maximum cost finds the highest cost your selling price can carry at a target margin.
      2. Enter the revenue or the cost. In find-the-margin mode, enter the revenue (the selling price) and the cost, for the same item or the same period. Revenue must be above $0. Cost can be $0, which happens when you sell something that cost you nothing, and the tool handles that honestly: the margin is 100 percent and the markup is not defined.
      3. Enter the target margin in the pricing modes. In set-a-price and find-the-maximum-cost modes, enter the margin you want, from 0 to below 100 percent. A margin of 100 percent or more is impossible on a positive cost, and the tool explains why instead of giving you a nonsense price.
      4. Read your result. The calculator shows the headline answer, the profit in dollars, every step of the arithmetic, and a table of what other margins would give on the same figures. In find-the-margin mode you also get a margin-versus-markup comparison table, which is the fastest way to see why the two percents differ. Results update as you type.

      If you only need a quick percent worked out, without a price attached, our Percentage Calculator answers questions like what percent one number is of another, and what a percent increase or decrease comes to. This page is the pricing version: costs and prices in, margins out.

      How profit margin math works

      Every margin calculation uses the same three numbers: the revenue (the selling price), the cost, and the profit, which is the revenue minus the cost. Know any two and you can find the third. The formulas below are written out in plain words, with a worked example for each mode, so you can check the tool by hand or do the sum on paper before you set a price.

      Find the margin. Gross profit equals revenue minus cost. Profit margin equals gross profit divided by revenue, times 100. Markup equals gross profit divided by cost, times 100. The two percents share the same profit on top and divide by different numbers underneath, which is why they are never the same number.

      Worked example, find the margin. A coffee shop sells a latte for $5.50, and the milk, coffee, and cup cost $2.20. The gross profit is $5.50 minus $2.20, which is $3.30. The profit margin is $3.30 divided by $5.50 times 100, which is 60.00 percent. The markup is $3.30 divided by $2.20 times 100, which is 150.00 percent. The same $3.30 is 60 percent of the price and 150 percent of the cost.

      Worked example, the classic pair. An item costs $100 and sells for $150. The gross profit is $150 minus $100, which is $50. The profit margin is $50 divided by $150 times 100, which is 33.33 percent. The markup is $50 divided by $100 times 100, which is 50.00 percent. Memorize this pair: a 50 percent markup is a 33.33 percent margin, not a 50 percent margin. It is the single most useful margin fact in small business.

      Worked example, selling at a loss. An item costs $100 and sells for $90. The gross profit is $90 minus $100, which is minus $10. The profit margin is minus $10 divided by $90 times 100, which is minus 11.11 percent. The markup is minus $10 divided by $100 times 100, which is minus 10.00 percent. A negative margin is not an error: it is the tool telling you the sale loses money, and by exactly how much.

      Set a price. Selling price equals cost divided by 1 minus the target margin written as a decimal. For a 40 percent target margin, divide the cost by 0.60. The profit is the selling price minus the cost, and you can check the answer by working the margin forward from the price you just found.

      Worked example, set a price. A handmade candle costs $12 to make, and you want a 40 percent margin. The selling price is $12 divided by 1 minus 0.40, which is $12 divided by 0.60, which is $20.00. The profit is $20.00 minus $12.00, which is $8.00. The check: $8.00 divided by $20.00 times 100 is 40.00 percent. A second example: a widget costs $45 and you want a 25 percent margin. The price is $45 divided by 0.75, which is $60.00, and the profit is $15.00.

      Find the maximum cost. Maximum cost equals revenue times 1 minus the target margin written as a decimal. For a 30 percent target margin, multiply the revenue by 0.70. The profit is the revenue minus the maximum cost.

      Worked example, find the maximum cost. You sell a product for $80 and want a 30 percent margin. The maximum cost is $80 times 1 minus 0.30, which is $80 times 0.70, which is $56.00. The profit is $80 minus $56, which is $24.00. If your supplier charges more than $56, the margin falls below 30 percent. A second example: revenue of $250 at a 20 percent target margin gives a maximum cost of $250 times 0.80, which is $200.00, and a profit of $50.00.

      Rounding. Money is rounded half up to the nearest cent: a value ending in exactly half a cent rounds up, so $100.005 becomes $100.01. Percentages are rounded to two decimal places, and a target margin is shown as you enter it. The price and cost formulas can produce fractions of a cent, and rounding them can move the margin by a hundredth of a point: a cost of $12.50 at a 12.5 percent target margin gives an exact price of $14.2857, which rounds to $14.29, and $14.29 gives a margin of 12.53 percent, not 12.50 percent. When that happens the tool says so plainly instead of hiding the gap, and the step-by-step breakdown shows the check so you can see it for yourself.

      Margin vs markup: the difference that costs sellers money

      Margin and markup are the two ways of expressing the same profit as a percent, and they are not interchangeable. Margin divides the profit by the revenue: it tells you what share of the selling price you keep. Markup divides the profit by the cost: it tells you how much you added to the cost. Because the revenue is bigger than the cost whenever you make a profit, the markup is always the bigger number. A seller who sets prices by markup while thinking in margin will underprice everything, and a seller who quotes a markup to a buyer who hears a margin will promise more than the price delivers.

      The table below shows the pair for common margins, with the selling price and profit on a $100 cost, so you can see the relationship at a glance. Read across any row: the margin is the share of the price, the markup is the share of the cost, and the profit is the same dollars either way.

      Profit marginMarkup on costPrice on a $100 costProfit
      10.00%11.11%$111.11$11.11
      20.00%25.00%$125.00$25.00
      25.00%33.33%$133.33$33.33
      30.00%42.86%$142.86$42.86
      33.33%*50.00%$150.00$50.00
      40.00%66.67%$166.67$66.67
      50.00%100.00%$200.00$100.00
      60.00%150.00%$250.00$150.00
      75.00%300.00%$400.00$300.00
      80.00%400.00%$500.00$400.00

      * The 33.33 percent row is exactly one third, shown rounded to two decimals. The exact margin on a $100 cost and a $150 price is 33.333... percent, and the markup is exactly 50 percent.

      Two rows in that table deserve a second look. The 50 percent margin row shows a 100 percent markup: doubling the cost gives you a 50 percent margin, not a 100 percent margin. Sellers who say they "doubled their money" and call it a 100 percent margin have the markup right and the margin wrong. And the 80 percent margin row shows a 400 percent markup, which looks extreme until you remember that the markup divides by the small number: on a $100 cost, keeping $400 of a $500 price is an 80 percent margin and a 400 percent markup, and both numbers describe the same sale.

      To convert between the two without the table, use these formulas. Markup from margin: markup equals margin divided by 100 minus margin, times 100. A 20 percent margin gives 20 divided by 80 times 100, which is a 25 percent markup. Margin from markup: margin equals markup divided by 100 plus markup, times 100. A 50 percent markup gives 50 divided by 150 times 100, which is a 33.33 percent margin. The conversion is not symmetric, which is the whole point: you cannot swap the words and keep the number.

      The practical rule is simple. Use margin when you talk about what you keep from a sale, because margin is measured against the money the customer actually pays. Use markup when you talk about how you built the price from the cost, because markup is measured against the money you spent. Our Markup Calculator works out the markup on cost, sets a selling price from a target markup, and shows the equivalent margin in every mode. Accountants, lenders, and investors talk in margin, so a margin is the number to quote in a business plan or a loan application. A supplier who offers you "50 percent off the list price" is talking about a discount, not a margin, and the margin that discount leaves you depends on your selling price, not on the discount percent alone.

      How to price from a target margin

      Most sellers price backwards: they pick a price that feels right and then discover what margin it gives them. Pricing from a target margin turns that around. You decide the margin first, from what the business needs to cover its overheads and leave a profit, and the formula sets the price. The table below shows the price and profit for a $60 cost at five target margins, so you can see how fast the price climbs as the margin rises.

      Target marginSelling price on a $60 costProfit
      10.00%$66.67$6.67
      20.00%$75.00$15.00
      30.00%$85.71$25.71
      40.00%$100.00$40.00
      50.00%$120.00$60.00

      The trap to avoid is adding the margin percent to the cost. A seller who wants a 30 percent margin on a $60 cost and adds 30 percent to the cost gets a price of $78.00, and the profit of $18.00 on a $78.00 price is a margin of 23.08 percent, not 30 percent. The seller added a 30 percent markup and called it a margin, and the price is $7.71 too low. The correct price for a 30 percent margin is $60 divided by 0.70, which is $85.71. The gap between adding and dividing grows with the margin: at a 50 percent target, adding gives $90.00 and a margin of 33.33 percent, while dividing gives $120.00 and a true 50 percent margin, a $30 difference on every sale.

      Once the formula gives you a price, the market gets a vote. A price the formula produces may be higher than customers will pay, and then the answer is not to fudge the margin but to change one of the inputs: find a cheaper supplier, cut a cost, or accept a lower margin and make it up on volume. The find-the-maximum-cost mode is built for that conversation: if the market price is fixed at $80 and you need a 30 percent margin, your cost must be no more than $56.00, and a supplier quote above that tells you the deal does not work at that price. A price that ignores the market is a wish, and a margin that ignores the cost is a hope; the calculator keeps both honest.

      Two details belong in any target-margin price. First, decide what counts as cost before you start, and count it the same way every time: materials, direct labor, packaging, shipping you pay, and marketplace or card fees that come out of the sale. A margin worked out on materials alone looks generous and then evaporates when the fees land. Second, remember that the margin here is a gross margin: it pays the overheads and leaves the profit, and it has to be big enough to do both. The next section separates gross from net so the target you pick is the right kind of margin.

      Gross margin vs net margin

      Gross margin and net margin measure profit at two different points, and confusing them is the second most expensive margin mistake after confusing margin with markup. Gross margin is revenue minus the direct cost of what you sold, divided by revenue. Net margin is what is left after every other cost of running the business, divided by revenue. The gross margin is always the bigger number, because the net margin subtracts more.

      Worked example. A shop takes in $10,000 in a month. The goods it sold cost $6,000 to buy. The gross profit is $10,000 minus $6,000, which is $4,000, and the gross margin is $4,000 divided by $10,000 times 100, which is 40.00 percent. Then the shop pays $2,500 in rent, wages, utilities, and other overheads. The net profit is $4,000 minus $2,500, which is $1,500, and the net margin is $1,500 divided by $10,000 times 100, which is 15.00 percent. The same month has a 40 percent gross margin and a 15 percent net margin, and both numbers are true at the same time.

      A second example shows how wide the gap can be. A freelancer bills $2,000 for a project. The direct costs are $800, so the gross profit is $1,200 and the gross margin is 60.00 percent. Overheads of $900 leave a net profit of $300, a net margin of 15.00 percent. A 60 percent gross margin sounds like a thriving business, and a 15 percent net margin is the reality after the bills. Neither number is wrong; they answer different questions.

      This calculator works out gross margin only. The cost you enter is the direct cost of the item or the goods sold, and the margin it returns is the gross margin on that cost. It does not subtract rent, wages, insurance, marketing, loan payments, or taxes, because those are overheads, not the cost of the item, and they belong in the net margin. If you enter your full cost including an overhead share, the result is closer to a net margin, but then you must say so when you quote it, because a margin worked out on a loaded cost is not the gross margin a lender or an accountant expects to see.

      Use gross margin to price individual items and to judge whether a product line is worth selling. Use net margin to judge whether the business as a whole is healthy. A product with a thin gross margin can still be worth stocking if it brings in customers who buy other things, and a product with a fat gross margin can still lose money if the overheads it carries are heavy. The margin on one sale and the margin on the whole business are different measures, and a healthy business watches both.

      What your result means

      The headline result is the profit margin: the share of the selling price you keep after the direct cost. The profit in dollars is the money that share represents, and the two belong together, because a margin without dollars is a percent without a size. A 5 percent margin on $20,000 of revenue is $1,000 of profit, and a 40 percent margin on $2,500 of revenue is also $1,000 of profit. Same profit, very different business: the first needs high volume and tight operations, the second needs fewer sales at higher prices. Judge a margin by the dollars it produces at the volume you can actually sell, not by the percent alone.

      The nearby table under the result answers the next question: what would a different margin mean in dollars? If your margin is 20 percent and you wonder what 30 percent would be worth, the table shows the price you would need to charge and the profit each sale would make. On a $100 cost, moving from a 20 percent margin to a 30 percent margin means raising the price from $125.00 to $142.86, and the profit per sale rises from $25.00 to $42.86. That $17.86 per sale is the value of the price rise, and you can weigh it against the sales you might lose at the higher price.

      Discounts eat margin faster than most sellers expect, because a discount cuts the price while the cost stays put. A product priced at $100 with a cost of $60 has a margin of 40.00 percent. A 10 percent discount takes the price to $90, the profit falls to $30, and the margin falls to 33.33 percent. A 20 percent discount takes the price to $80, the profit falls to $20, and the margin falls to 25.00 percent. A 20 percent discount has cut the margin by 15 percentage points and halved the profit, from $40 to $20. Before you run a sale, work out the margin at the sale price, not at the list price, and check the result against what the business needs. Our Discount Calculator works out the sale price, and this calculator shows what margin is left at that price.

      The margin also sets your break-even point: how many units you must sell before the business starts making money. Divide your fixed costs for the period by the profit on each unit. With fixed costs of $1,500 a month and a profit of $12.00 on each unit, you must sell 125 units a month to break even, because $1,500 divided by $12 is 125. With a profit of $18.00 on each unit, the break-even is $1,500 divided by $18, which is 83.33 units, and since you cannot sell a third of a unit, you need 84. A higher margin per unit means fewer sales to break even, which is why a small price rise can matter more than a big volume push.

      Finally, remember what the result does not include. The margin here is gross: it does not subtract overheads, taxes, or fees you did not put in the cost box. A 40 percent gross margin is not 40 percent of the revenue in your pocket; it is 40 percent to pay the overheads and then leave a profit. If the overheads take 25 percent of revenue, a 40 percent gross margin leaves a 15 percent net margin. Work the net margin out separately, from your own books, before you decide the business is healthy. When the price is set and the margin is right, our Invoice Generator turns the price into a professional invoice. You can find more business and shopping tools on the Tools Elite homepage.

      Common mistakes to avoid

      Confusing markup with margin. The biggest and most common error, covered in detail above. A 50 percent markup is a 33.33 percent margin. A 100 percent markup is a 50 percent margin. Doubling the cost does not give a 100 percent margin. Whenever someone quotes a percent, ask which number it divides by before you act on it.

      Adding the margin percent to the cost. A 30 percent margin on a $60 cost is not a $78 price. Adding 30 percent to the cost gives a 30 percent markup and a 23.08 percent margin. Divide the cost by 1 minus the margin: $60 divided by 0.70 is $85.71. The gap between adding and dividing is $7.71 on every sale at a 30 percent target, and $30 at a 50 percent target.

      Leaving costs out of the cost box. Materials alone are not the cost. Packaging, shipping you pay, marketplace fees, card processing, and your own time all come out of the sale, and a margin worked out without them is a fantasy. Count every cost that rises with each sale, and count it the same way every time, so margins from different months can be compared.

      Chasing margin and ignoring volume. A 40 percent margin on $2,500 of revenue is $1,000 of profit. A 5 percent margin on $20,000 of revenue is also $1,000 of profit. The higher margin is not automatically the better business. Volume, repeat sales, and the cost of winning each customer all belong in the decision alongside the margin.

      Forgetting what a discount does to margin. A 20 percent discount on a $100 item with a $60 cost cuts the margin from 40 percent to 25 percent and halves the profit, from $40 to $20. Work out the margin at the sale price before you approve a promotion, and never let a discount take the price below the cost unless you know exactly what the loss buys you.

      Quoting gross margin as if it were net margin. A 40 percent gross margin with overheads of 25 percent of revenue is a 15 percent net margin. Calling the gross figure the profit overstates the business by 25 points and hides the overheads that have to be paid. Say which margin you mean, every time.

      Treating a 100 percent margin as achievable. A 100 percent margin means the cost is zero, and on any positive cost the price would have to be infinite. The closest a real product gets is a very high margin on a very low cost. If a plan promises a 100 percent margin, someone has confused margin with markup, and the real margin is 50 percent.

      Rounding at each step by hand. If you work out a price on paper and round each step to the nearest dollar, the errors compound, and on a big order they can drift by dollars. The calculator keeps the exact figures through every step and rounds only the displayed results, and it flags the cases where rounding moves the margin by a hundredth of a point. That flag is the rounding, not an error.

      Swapping the revenue and the cost. Entering the selling price as the cost and the cost as the revenue gives a negative margin, and the calculator will show a loss. If you get a negative margin you did not expect, check which box holds which number before you change the price.

      Pricing below cost without knowing the loss. Selling below cost can be a deliberate choice, to win a customer or clear stock, but it is a choice that needs a number attached. A $90 price on a $100 cost loses $10 a sale, a margin of minus 11.11 percent. Know the loss per sale, know how many sales you can afford, and know what the loss buys you, before the first discounted sale goes out.

      Frequently asked questions

      How do you calculate profit margin?

      Subtract the cost from the revenue to get the gross profit, divide the profit by the revenue, and multiply by 100. For an item that sells for $150 and costs $100, the profit is $50, and $50 divided by $150 times 100 is 33.33 percent. Enter the revenue and the cost above and the calculator shows the margin, the markup, and every step of the arithmetic.

      What is the difference between profit margin and markup?

      Margin divides the profit by the revenue; markup divides the profit by the cost. On an item that costs $100 and sells for $150, the profit is $50, the margin is $50 divided by $150, which is 33.33 percent, and the markup is $50 divided by $100, which is 50 percent. The same profit is always a bigger markup than a margin, because the cost is smaller than the revenue. A 50 percent markup is a 33.33 percent margin, and a 100 percent markup is a 50 percent margin.

      How do you calculate profit margin from cost and selling price?

      Subtract the cost from the selling price to get the profit, then divide the profit by the selling price and multiply by 100. For an item that costs $80 and sells for $120, the profit is $40, and $40 divided by $120 times 100 is 33.33 percent. Use the find-the-margin mode above: enter the selling price as the revenue and the cost, and the calculator gives you the margin and the markup together.

      How do you price a product for a 30 percent profit margin?

      Divide the cost by 1 minus the margin written as a decimal: for a 30 percent margin, divide by 0.70. A product that costs $70 needs a price of $70 divided by 0.70, which is $100.00, and the profit is $30.00. Do not add 30 percent to the cost: that gives $91.00, a 30 percent markup and only a 23.08 percent margin. Use the set-a-price mode above to work out any target margin.

      What is a good profit margin?

      There is no single good margin: it depends on the business, the volume, and the overheads the margin has to pay. A grocery store can thrive on a thin margin because it sells a huge volume, while a business that sells a few high-value items a month needs a thick margin from each sale. The right question is not what other businesses earn but what your business needs: work out the margin that covers your overheads at the volume you can actually sell, with a profit left over, and treat that as your target. Compare your margin with your own past months before you compare it with anyone else.

      Can profit margin be 100 percent?

      Only if the cost is zero. A 100 percent margin means the whole selling price is profit, which needs a cost of $0. On any positive cost, a 100 percent margin would need an infinite selling price, which is why this calculator refuses a target margin of 100 percent or more and explains why. What people usually mean by a 100 percent margin is a 100 percent markup, which is doubling the cost, and that gives a 50 percent margin: a $100 cost doubled to a $200 price keeps $100 of profit, which is half the price.

      What is the difference between gross margin and net margin?

      Gross margin is revenue minus the direct cost of what you sold, divided by revenue. Net margin is what is left after every other cost of running the business, divided by revenue. A shop with $10,000 of revenue and $6,000 of goods costs has a gross profit of $4,000, a gross margin of 40 percent. After $2,500 of rent, wages, and other overheads, the net profit is $1,500, a net margin of 15 percent. This calculator works out gross margin only: the cost you enter is the direct cost, and overheads belong in the net margin, worked out from your own books.

      How accurate is this profit margin calculator?

      The arithmetic is exact: every figure is computed from the numbers you enter, with money rounded half up to the nearest cent and percents to two decimal places. The price and cost formulas can produce fractions of a cent, and rounding them can move the margin by a hundredth of a point, which the tool flags when it happens. What the calculator cannot know is your true cost: if a fee, a shipping charge, or your own time is missing from the cost box, the margin will be too high. Check the figures against your own books before setting a price.