Calculate selling price, markup, margin, and profit
Choose the pricing calculation you need, enter your cost or selling price, then get a clean profit breakdown.
What this markup and margin calculator does
This markup and margin calculator helps you work through the numbers behind product pricing, service pricing, retail pricing, online selling, handmade goods, and simple business profit estimates. Instead of guessing whether a price is “good enough,” you can enter your cost, target markup, target margin, selling price, extra costs, platform fees, and quantity to see what the price actually means.
The calculator can answer several common pricing questions. You can calculate a selling price from cost and markup, calculate a selling price from cost and target margin, compare markup and margin from cost and selling price, estimate the maximum cost allowed for a target margin, or estimate total gross profit from quantity sold. That makes it useful for sellers, freelancers, retailers, creators, food businesses, marketplace sellers, small shops, and anyone who needs a clearer view of cost, price, and profit.
This page is part of the Money & Payment Calculators section inside Everyday Utility Calculators. If you are working through customer pricing, you may also find the Sales Tax Calculator, VAT Calculator, Discount Calculator, and Currency Conversion Calculator useful.
Markup vs margin explained in simple terms
Markup and margin are often confused because both describe profit. The difference is the number they compare profit against. Markup compares profit to cost. Margin compares profit to selling price. That one difference can change how you read the health of a product, service, quote, or sale.
For example, if a product costs $40 and sells for $60, the gross profit is $20. The markup is 50% because the $20 profit is half of the $40 cost. The margin is 33.33% because the $20 profit is one-third of the $60 selling price. The dollars are the same, but the percentages are different because the base number is different.
This matters because many people accidentally use markup when they mean margin. A 50% markup does not create a 50% margin. A 50% margin requires a much higher selling price than a 50% markup. If you sell products online, discount items often, or pay platform fees, this difference can decide whether your price leaves enough room for profit after real costs.
| Term | What it compares | Simple meaning |
|---|---|---|
| Markup | Profit compared to cost | How much you add on top of cost |
| Margin | Profit compared to selling price | How much of the selling price is profit |
| Gross profit | Selling price minus cost | The profit before other business expenses |
How to calculate markup
Markup starts with cost. You calculate how much profit you want to add on top of that cost, then convert that profit into a percentage of the cost. The formula is simple: subtract cost from selling price, divide by cost, then multiply by 100.
Markup percentage = ((selling price - cost) / cost) × 100
If your cost is $40 and your selling price is $60, the profit is $20. Divide $20 by the $40 cost and you get 0.50. Multiply by 100 and the markup is 50%.
Markup is especially helpful for cost-plus pricing. A retailer might take product cost and add a standard markup. A handmade seller might add materials, packaging, and labor, then add a markup to create a selling price. A freelancer might use a cost-like baseline for time, subcontractors, or tools, then apply a markup to protect profit. If you are also estimating household or operating expenses, tools like the Household Expense Calculator, Electricity Bill Calculator, and Internet and Data Usage Calculator can help you think through costs you may otherwise forget.
How to calculate profit margin
Profit margin starts with selling price. It shows what percentage of your final selling price remains as profit after cost. The formula is selling price minus cost, divided by selling price, multiplied by 100.
Margin percentage = ((selling price - cost) / selling price) × 100
Using the same example, if cost is $40 and selling price is $60, the profit is $20. Divide $20 by the $60 selling price and you get 0.3333. Multiply by 100 and the margin is 33.33%.
Margin is useful because it tells you how much room your selling price has. If you offer discounts, accept payment fees, pay commissions, cover returns, or include shipping in the price, margin helps you see how quickly profit can shrink. For sale pricing, use the Discount Calculator before checking your margin. For tax-inclusive pricing, compare your estimate with the Sales Tax Calculator or VAT Calculator.
How to calculate selling price from cost and markup
To calculate selling price from markup, multiply cost by the markup percentage as a decimal, then add that markup amount to cost. This is the simplest version of cost-plus pricing.
Markup amount = cost × (markup percentage / 100)
Selling price = cost + markup amount
If your total unit cost is $40 and you apply a 50% markup, the markup amount is $20. Your selling price is $60. If you include an extra cost per unit, such as packaging, payment processing, or shipping supplies, add that to the cost before applying the markup if that reflects your pricing method.
This approach is easy to understand, but it can be risky if you do not check the resulting margin. A markup may sound large while still leaving a smaller margin than expected. That is why this calculator shows both markup and margin where possible.
How to calculate selling price from target margin
Target margin pricing works backward from the profit percentage you want to keep from the selling price. This is useful when you want a clear margin target, such as 30%, 40%, or 60%, instead of simply adding a markup to cost.
Selling price = cost / (1 - target margin percentage / 100)
For example, if your cost is $40 and your target margin is 40%, the selling price is $40 divided by 0.60, which equals $66.67. That price leaves about $26.67 in gross profit and gives a 40% margin before other business expenses.
The target margin must be below 100%. A 100% target margin would mean the full selling price is profit and cost is zero, which does not work for normal pricing. This calculator shows a warning if the target margin is 100% or higher.
How fees, shipping, returns, and discounts affect profit
Many prices look profitable until real selling costs are included. A product may have a healthy gross margin before marketplace fees, payment processing, shipping supplies, return losses, damaged items, advertising, and discounts. That is why the calculator includes optional extra cost per unit and platform fee percentage fields.
An extra cost per unit can represent packaging, labels, delivery materials, added labor, or any cost you want included in the unit cost. A platform fee percentage can represent marketplace fees, card fees, app fees, or commission-like selling charges. When fees are included, the calculator can show a net profit estimate separately from gross profit so you do not mistake one for the other.
Discounts are another common issue. A product priced with a 35% margin may not still have a 35% margin after a 20% sale. If you regularly run promotions, compare your planned sale price with the Discount Calculator. If customers split a charge, the Split Bill Calculator can help with shared totals. If the sale includes service tips, the Tip Calculator may be useful for customer-facing examples.
Gross profit vs net profit
Gross profit is selling price minus the direct cost of the item or service. If you buy a product for $40 and sell it for $60, the gross profit is $20. Gross margin is based on that gross profit.
Net profit goes further. It may account for platform fees, shipping costs, advertising, overhead, returns, software, labor, rent, taxes, and other operating costs. This calculator is not a full accounting tool, but it can help you see the difference between a basic gross profit estimate and a more practical net profit estimate when you enter extra costs and fees.
For a small business, this distinction matters. A handmade product may look profitable based on materials alone but become weak once packaging and selling fees are added. A service may look profitable based on hourly rate alone but become less attractive once admin time, tools, and unpaid revisions are considered. For time-based work, calculators like the Work Hours Calculator, Time Duration Calculator, and Business Days Calculator can help you estimate the time side of your pricing.
Common markup and margin examples
The table below shows why markup and margin are not interchangeable. The examples use a $40 cost. Notice how the selling price and margin change as markup increases.
| Cost | Markup | Selling price | Profit | Margin |
|---|---|---|---|---|
| $40.00 | 25% | $50.00 | $10.00 | 20.00% |
| $40.00 | 50% | $60.00 | $20.00 | 33.33% |
| $40.00 | 75% | $70.00 | $30.00 | 42.86% |
| $40.00 | 100% | $80.00 | $40.00 | 50.00% |
Practical pricing examples
Retail product pricing
A retailer buys a product for $18 and wants a healthy price that covers shop expenses, slow-moving inventory, damaged items, and occasional discounts. A simple markup may be a starting point, but the retailer should also check the margin after discounts and fees. If local taxes affect the checkout amount, the Sales Tax Calculator can help estimate the customer-facing total.
Handmade goods
A handmade seller may think the cost is only materials, but that often misses packaging, labels, transaction fees, failed batches, delivery supplies, and time. Use the extra cost field for those smaller costs that add up. If your work involves measuring ingredients or materials, the Weight and Mass Converter, Volume and Capacity Converter, and Cooking Converter can support more accurate cost estimates.
Online selling
Online sellers often pay platform fees, payment processing fees, shipping-related costs, return costs, and advertising costs. A product with a good gross margin can still produce a weak net profit if these costs are ignored. Enter the platform fee percentage and extra cost per unit to see a more practical estimate.
Freelancing and services
For services, cost may include labor, subcontractor help, software, travel, tools, or the minimum amount you need to cover your time. If a project takes several work sessions, the Time Duration Calculator, Date Difference Calculator, and Shift Schedule Calculator can help you understand the schedule before pricing the work.
Food items and small batches
Food pricing often needs extra care because ingredient costs, packaging, utilities, prep time, waste, and delivery can change quickly. Use the calculator for a basic price check, but avoid treating the result as a guaranteed profit. For utility-heavy preparation, the Electricity Cost per Appliance Calculator, Gas and Fuel Consumption Calculator, Water Bill Calculator, and Laundry Cost Calculator can help estimate background costs.
Mistakes to avoid when setting prices
- Confusing markup with margin. A 50% markup is not a 50% margin. Always check both numbers before deciding on a price.
- Forgetting small costs. Packaging, supplies, transaction fees, labels, returns, and delivery materials can quietly reduce profit.
- Pricing only against competitors. Competitor prices matter, but your costs, quality, audience, and business goals matter too.
- Ignoring discounts. A price may work at full price but fail during a sale. Test sale prices before running promotions.
- Assuming gross profit is take-home profit. Gross profit does not include every business expense.
- Using one margin for everything. Different products, services, and channels may need different pricing targets.
Markup and margin calculator FAQs
What is the difference between markup and margin?
Markup compares profit to cost, while margin compares profit to selling price. For example, if an item costs $40 and sells for $60, the profit is $20. The markup is 50% because $20 is 50% of the $40 cost. The margin is 33.33% because $20 is 33.33% of the $60 selling price.
How do I calculate markup percentage?
Markup percentage is calculated by subtracting cost from selling price, dividing the result by cost, and multiplying by 100. The formula is markup percentage = ((selling price - cost) / cost) × 100.
How do I calculate profit margin?
Profit margin is calculated by subtracting cost from selling price, dividing the result by selling price, and multiplying by 100. The formula is margin percentage = ((selling price - cost) / selling price) × 100.
How do I calculate selling price from cost and target margin?
To calculate selling price from cost and target margin, divide cost by 1 minus the target margin as a decimal. For example, if cost is $40 and the target margin is 40%, the selling price is $40 divided by 0.60, which equals $66.67.
Can margin be 100%?
A 100% margin is not realistic in the standard selling price formula because it would require the cost to be zero or the selling price to become infinite. This calculator warns users when the target margin is 100% or higher.
Why is a 50% markup not the same as a 50% margin?
A 50% markup means profit is 50% of the cost. A 50% margin means profit is 50% of the selling price. Since cost and selling price are different bases, the percentages are not the same.
Does this calculator include fees and extra costs?
Yes. The calculator can include an optional extra cost per unit and an optional platform fee percentage. It clearly separates gross profit from net profit when fees are included.
Is this markup and margin calculator accounting advice?
No. This calculator is an informational pricing tool. Pricing decisions depend on costs, taxes, fees, competition, demand, shipping, returns, and business goals. Users should review full business costs and consult an accountant or business advisor when needed.