Markup Calculator (Profit Margin & Selling Price)
Price a product (or service) in seconds. Use this calculator to go from cost → selling price with a markup, or to measure markup and profit margin from an existing selling price.
Notes: this calculator is for unit economics (per item / per hour). It doesn’t include sales tax, shipping, marketplace fees, or returns.
Last updated: May 9, 2026
What this markup calculator does
Pricing conversations often get stuck on one confusing detail: people mix up markup and margin. They both describe profitability, but they use different “bases.” Markup is measured relative to cost, while margin is measured relative to selling price. This page gives you a clean way to compute both, plus the selling price and profit, from the inputs you actually have.
Markup vs. margin (why they’re not the same)
Let’s define two numbers: cost (what it costs you to produce or deliver one unit) and price (what you charge the customer). The profit per unit is simply price − cost.
Markup (%) answers: “How much did I add on top of my cost?” The formula is (profit ÷ cost) × 100. If something costs $25 and you sell it for $40, your profit is $15 and your markup is 15/25 = 60%.
Margin (%) answers: “What share of my selling price is profit?” The formula is (profit ÷ price) × 100. With the same numbers (cost $25, price $40), margin is 15/40 = 37.5%.
This difference matters because many industries talk in margin (retail, SaaS, restaurants), while many cost‑plus pricing discussions talk in markup. If you quote “60%” without clarifying which one, you can accidentally promise the wrong thing.
How to use the calculator
Pick the mode that matches what you know:
- Cost + markup % → selling price: great for cost‑plus pricing. You enter your unit cost and the markup you want, and the tool returns the selling price.
- Cost + selling price → markup & margin: great for analyzing a current price (or a competitor’s price) against your cost structure.
Formulas (so you can sanity‑check results)
When you start with cost and a markup percentage, the selling price is: price = cost × (1 + markup%/100). Profit is price − cost.
When you start with cost and a selling price, profit is still price − cost. Then: markup% = (profit ÷ cost) × 100 and margin% = (profit ÷ price) × 100.
The calculator uses those exact equations. If your result looks surprising, it’s usually because the “base” changed: cost for markup, selling price for margin.
Worked examples (common real‑world scenarios)
Example 1: cost‑plus pricing. You buy a product for $18 and you want a 50% markup. The selling price is 18 × 1.5 = $27. Profit is $9, markup is 50%, and margin is 9/27 = 33.33%.
Example 2: analyzing a current price. You sell an item for $79 and it costs you $52 to deliver. Profit is $27. Markup is 27/52 = 51.92% and margin is 27/79 = 34.18%. If your target margin is 40%, you either need a higher price, a lower cost, or a different product mix.
Example 3: fees, shipping, and reality. Marketplace fees (say 12%), payment processing, packaging, and returns all reduce your true profit. The cleanest approach is to bake those into your “cost” input as an all‑in cost per unit. If your shipping average is $6 and fees average $4, add them to the base cost so the markup/margin you compute reflects reality.
Common mistakes (and how to avoid them)
1) Confusing markup and margin. A “50% markup” is not a “50% margin.” In fact, 50% markup corresponds to 33.33% margin. If someone gives you a margin target, don’t plug it into a markup field.
2) Forgetting overhead. Rent, tools, software, support time, and admin work still cost money. If you price only off direct costs (materials), you may hit a great “gross margin” but still lose money overall.
3) Using the wrong unit. Cost and price must be per the same unit: per item, per hour, per project. If your cost is per month but your price is per week, the percentages will be nonsense.
4) Treating tax as profit. Sales tax is collected on behalf of the government in many regions; it usually shouldn’t be part of your margin. Price the product/service first, then add tax on top if applicable.
Related calculators
Want more tools like this? Browse the full list at /calculators/.
FAQ
What is markup?
Markup is the amount added to your cost to set a selling price. As a percentage, markup% = (profit ÷ cost) × 100.
What is profit margin?
Profit margin is profit as a share of the selling price. Margin% = (profit ÷ price) × 100.
Is a 50% markup the same as a 50% margin?
No. 50% markup means profit is half of cost; it equals a 33.33% margin because profit is one‑third of the selling price.
How do I calculate selling price from cost and markup?
Price = cost × (1 + markup%/100). Example: cost 20 with 25% markup → 20 × 1.25 = 25.
How do I calculate markup from cost and selling price?
Profit = price − cost, then markup% = (profit ÷ cost) × 100.