Skip to content
EveryFix

Profit Margin Calculator

The Profit Margin Calculator computes both your profit margin (profit as a percent of revenue) and markup (profit as a percent of cost) — two related but different numbers business owners often confuse. Because margin is calculated on the larger selling-price base while markup is calculated on the smaller cost base, whenever you are making a profit, margin is always the lower of the two percentages, and the gap between them widens as profit grows relative to cost. This distinction matters most when setting prices: aiming for a 50% profit margin actually requires a 100% markup on cost, a mismatch that trips up even experienced business owners who use the two terms interchangeably.

Beginner⏱ 30 secondsUpdated 2026-10-28
$
$
Enter your details above and click “Calculate Profit Margin” to see your results here.

How This Tool Works

Enter your total revenue and total cost to instantly see your profit, profit margin, and markup percentage.

Formula & Method

Profit = revenue − cost. Margin (%) = profit ÷ revenue × 100. Markup (%) = profit ÷ cost × 100.

Example Calculation

Suppose a consulting project bills $2,500 to the client and costs $1,800 in labor and expenses to deliver. Profit is $2,500 − $1,800 = $700. Divide that profit by revenue to get profit margin: $700 ÷ $2,500 = 28%. Divide the same $700 profit by cost instead to get markup: $700 ÷ $1,800 = 38.9%. Both percentages describe the identical $700 profit — margin tells you it's 28% of what the client paid, while markup tells you it's 38.9% on top of what it cost you to deliver.

Please note: This calculator provides estimates for general informational purposes only and is not financial advice. Actual rates, terms, taxes, and costs vary — consult a qualified financial professional before making financial decisions.

About the Profit Margin Calculator

Profit margin answers a question every seller eventually has to face: out of each dollar a customer pays me, how many cents do I actually keep? This calculator takes two numbers, the revenue you receive and the cost you incur, and returns the dollar profit, the profit margin as a percentage of revenue, and the markup as a percentage of cost. Seeing margin and markup side by side is the whole point, because they describe the same profit from two different starting lines and are routinely confused with one another.

The confusion is costly in practice. A shop owner who wants to earn a 40 percent margin and adds a 40 percent markup to cost ends up with a margin of only about 28.6 percent. The reverse mistake, reading a 40 percent margin report as though it were a markup, misjudges how much room exists for discounts. Margin uses the selling price as its base, so it can never exceed 100 percent for a profitable sale, while markup uses cost as its base and can run far beyond 100 percent. Keeping both numbers in view prevents pricing errors.

What counts as cost is up to you, and that choice defines which kind of margin you are measuring. If you enter only the direct cost of goods sold, the result is a gross margin. If you enter every expense attached to the sale or the period, including labor, rent, shipping, fees, and overhead, the result approaches a net margin. The arithmetic is identical either way, so the discipline lies in using the same definition each time you compare products, jobs, or months.

When to Use It

Checking whether a product is worth selling

An online seller sourcing a product for $31.20 that retails at $48.50 can enter both figures to see the percentage actually retained after the cost of the item. If marketplace fees and shipping are added into cost, the result shows whether the product leaves enough margin to justify the inventory risk.

Reviewing a client project after delivery

A freelancer or small agency that billed a client and tracked the hours and expenses needed to complete the work can compute the project margin. Comparing margins across projects reveals which types of work are profitable and which merely keep the team busy.

Converting between margin and markup in conversations

A buyer says a supplier needs a 30 percent margin, while the supplier's price sheet is based on markup. Entering a revenue and cost pair that matches one figure and reading off the other makes the translation concrete, helping both sides negotiate with the same definitions.

Spotting a loss-making sale or period

When costs exceed revenue, the tool returns a negative profit and a negative margin. A business reviewing a month, a promotion, or a heavily discounted order can use that signal to decide whether to stop, reprice, or accept the loss as a deliberate marketing expense.

How to Use It, Step by Step

  1. Decide what you want to measure before typing anything. For a gross margin, cost means only the direct cost of the goods or service delivered; for something closer to a net margin, include all the expenses you want to charge against this revenue.
  2. Enter the Revenue (selling price) in dollars. This is the amount the customer pays, or the total sales for the period you are analyzing, before any costs are subtracted. The field must be above zero.
  3. Enter the Cost in dollars. Include purchase price, materials, labor, shipping, platform fees, and anything else you decided to count. Zero is allowed, though it is rarely realistic.
  4. Press Calculate Profit Margin. The tool subtracts cost from revenue to get Profit, which is positive when you made money and negative when you lost it.
  5. Read the highlighted Profit margin, which divides profit by revenue and displays one decimal place. This is the share of each revenue dollar you keep.
  6. Read the Markup line next, which divides the same profit by cost. Use it when your pricing is set as cost plus a percentage rather than as a target share of the selling price.
  7. Compare the two percentages. If margin is 30 percent and markup is 42.9 percent, they describe identical dollars, and you should use the one that matches the language of your supplier, accountant, or price list.
  8. Change the cost or revenue to test scenarios, such as a price increase, a supplier discount, or an added fee, and watch how both percentages move before you commit to the change.

Understanding Your Results

Profit is the plain dollar gain or loss: revenue minus cost. Profit margin turns that into a proportion of revenue, which makes different-sized sales comparable. A $17 profit on a $48 sale and a $75,000 profit on a $250,000 sale are hard to compare as dollars but easy as percentages. Markup does the same against cost. Because cost is smaller than revenue on a profitable sale, markup is always the larger of the two percentages.

A negative result is information, not an error. If revenue is $12,400 and cost is $13,150, profit is negative $750, margin is negative 6 percent, and markup is negative 5.7 percent. Both percentages are negative because profit is. The tool also guards against division by zero: if cost is exactly zero, markup is displayed as 0 percent rather than infinity, and margin will read 100 percent, which is mathematically true but rarely meaningful.

Judging whether a margin is good depends heavily on the kind of business. Grocery and commodity resellers often operate on thin single-digit or low double-digit margins and rely on volume, while software, consulting, and specialty goods commonly run much higher. Compare your result with peers in your industry and with your own history rather than with a universal target, and check that the margin is high enough to cover whatever overhead the cost figure left out.

More Worked Examples

Online reseller checking one product

Scenario: A product sells for $48.50 and costs $31.20 including the purchase price and shipping to the buyer.

Enter 48.5 for Revenue and 31.2 for Cost. The tool returns a Profit of $17.30, a Profit margin of 35.7 percent, and a Markup of 55.4 percent. In other words, the seller keeps about 36 cents of every dollar received, and the sale price is roughly 55 percent above cost. If platform fees were added into cost, the margin would shrink accordingly.

A month that lost money

Scenario: A small shop took in $12,400 in revenue and spent $13,150 on stock, wages, and rent.

Enter 12400 and 13150. The tool shows a Profit of negative $750.00, a Profit margin of negative 6 percent, and a Markup of negative 5.7 percent. The shop lost about 6 cents on each dollar of sales. To reach break-even at the same cost, revenue would need to rise by $750, about 6 percent, and to earn a positive margin it needs more than that.

Annual view of a healthy small business

Scenario: A business with $250,000 in annual revenue and $175,000 in total costs.

Enter 250000 and 175000. The result is a Profit of $75,000.00, a Profit margin of 30 percent, and a Markup of 42.9 percent. A 30 percent margin means 70 percent of revenue goes to costs. Pricing this business with a 30 percent markup instead would have produced only a margin of about 23 percent, which shows why the two terms must not be swapped.

Tips for Better Results

  • Decide once whether you are measuring gross margin or net margin and record the choice. Comparing a gross margin from one month with a net margin from another is a common source of confusion and bad decisions.
  • Include every cost that scales with the sale, such as payment processing fees, marketplace commissions, packaging, and shipping you pay. These small items quietly turn a comfortable-looking margin into a thin one.
  • When setting prices from a margin target, work backward: price equals cost divided by one minus the target margin. A $60 cost with a target margin of 40 percent needs a price of $100, not $84.
  • Track margin by product or service line, not only in total. A strong overall margin can hide a loss-making line that is being subsidized by another, and the tool makes per-item checks quick.
  • Test the effect of discounts before offering them. Cutting a price by 10 percent reduces revenue but not cost, so profit falls by a much larger percentage than the price did, and you may need a substantially higher sales volume to compensate.
  • Revisit your numbers regularly. Supplier prices, fees, and shipping rates change, and a margin you calculated last year may no longer be accurate even if your selling price has not moved.

Common Mistakes to Avoid

  • Using markup and margin interchangeably. A 50 percent markup gives only a 33.3 percent margin, so pricing from the wrong one leaves real money on the table or misstates profitability.
  • Leaving out costs that belong to the sale. Shipping, fees, returns, and discounts reduce what you keep, and ignoring them makes margins look healthier than they are.
  • Entering a price that includes sales tax as Revenue. Sales tax collected on behalf of the government is not your revenue, so use the pre-tax price to avoid inflating profit.
  • Comparing margins across very different business models. A distributor and a consultant have fundamentally different cost structures, so a number that is excellent for one can be alarming for the other.
  • Mixing time periods or units. Revenue for a quarter paired with costs for a month, or a per-unit price paired with total costs, produces meaningless percentages, so match the scope of both inputs.

Assumptions and Limits

  • The tool treats the cost figure as a single number and cannot tell what it includes. Whether the result is a gross margin, an operating margin, or something else depends entirely on what you decide to enter.
  • Percentages are shown to one decimal place and dollar amounts to the cent, but calculations use full precision. Rounded displays can differ slightly from a hand calculation using rounded intermediate values.
  • If revenue is positive and cost is zero, margin will read 100 percent and markup will show 0 percent because markup is undefined without a cost base. Treat that edge case as a prompt to double-check your inputs.
  • This is an arithmetic tool, not accounting or tax advice. For financial statements, pricing strategy, or tax treatment of costs, consult a qualified accountant who knows your jurisdiction and industry.

Key Terms

Profit margin
Profit divided by revenue, shown as a percentage. It tells you how much of each dollar of sales remains after costs.
Markup
Profit divided by cost, shown as a percentage. It tells you how far above cost the selling price sits.
Gross margin
Margin calculated using only the direct cost of the goods or services sold, before overhead such as rent, salaries, or marketing.
Net margin
Margin calculated after all expenses, including overhead, interest, and taxes, which shows what finally remains for the owners.
Cost of goods sold (COGS)
The direct costs of producing or purchasing the items you sold, such as materials, manufacturing labor, and inventory purchases.
Contribution
Revenue minus the variable costs of a sale. It is the amount available to cover fixed costs and then produce profit.
Read the guideHow to calculate profit marginCalculate profit margin: subtract cost from revenue for profit, then divide profit by revenue. Includes a worked example and how margin differs from markup.

Frequently Asked Questions

What's the difference between margin and markup?+

Margin is profit as a percent of the selling price (revenue), while markup is profit as a percent of your cost. They're calculated from the same numbers but always give different percentages.

What is a good profit margin?+

It varies widely by industry — retail often runs 20–50%, while software and services can run much higher. Compare against industry benchmarks for context.

Should I price based on margin or markup?+

Many businesses set prices using markup (cost + a percentage) but then track performance using margin, since margin better reflects overall profitability against revenue.

How do I convert a margin percentage into a markup percentage?+

Use the formula markup% = margin% ÷ (100 − margin%) × 100. For example, a 25% profit margin converts to a 33.3% markup, because a 25% margin means cost is 75% of revenue, and $0.25 profit ÷ $0.75 cost = 33.3%.

Can profit margin be negative?+

Yes — if your cost exceeds your revenue, profit comes out negative, and margin becomes negative too, meaning the sale lost money rather than made it. Markup is negative in the same situation, since it's calculated from that same negative profit divided by cost.

What margin do I need to cover my overhead?+

Add up your fixed monthly overhead, such as rent, software, insurance, and salaries not counted in cost, then divide by your expected monthly revenue. The result is the share of revenue that overhead consumes, and your gross margin must exceed it to leave any profit. For example, if overhead equals 25 percent of revenue, a 30 percent gross margin leaves only 5 percent as profit.

Why can't a margin exceed 100 percent?+

Margin is profit divided by revenue, and profit can at most equal revenue, which happens only when cost is zero. So a profitable sale has a margin below 100 percent. Markup is profit divided by cost, and because cost can be tiny relative to profit, markup can be 200, 500, or even 1,000 percent. That asymmetry is why the two measures diverge more as markups grow.

How do I raise my profit margin?+

There are only a few levers: raise prices, lower costs, or shift your sales toward higher-margin items. Test each in the calculator. A price increase of a few percent often moves margin more than a similar cost cut, but it may reduce volume. Renegotiating supplier terms, reducing waste, and cutting payment or shipping fees can help, as can dropping products that lose money.

Is margin calculated before or after tax?+

It depends on which margin you want. Gross and operating margins are normally stated before income tax, while net margin is after tax. This tool simply divides your profit by your revenue, so it reflects whatever costs you entered. If you want an after-tax figure, include income tax in cost, and use the pre-tax price as revenue instead of any collected sales tax.

How do I calculate margin when I give a discount?+

Use the discounted price actually received as Revenue and keep the original Cost. If an item costing $60 usually sells for $100 but you sell it at $90, enter 90 and 60: profit drops from $40 to $30 and margin from 40 percent to 33.3 percent. The discount of 10 percent of price therefore cuts profit by 25 percent, which is why discounting needs care.

Found this useful? Share it

Help someone else out — or link to it from your own site.

Link to this tool

Writing about profit margin calculator? Paste this on your site to link here.

<a href="https://everyfix.net/tools/profit-margin-calculator/">Profit Margin Calculator</a> by <a href="https://everyfix.net">EveryFix</a>