Selling Price Calculator: How to Price for Profit

A selling price calculator finds the price you should charge using the formula: Selling Price = Cost / (1 - Desired Margin). For example, a product that costs 60 with a target 40% margin sells for 60 / (1 - 0.40) = 100. This guarantees your price covers cost and locks in your intended profit.
A selling price calculator answers the single most important question in any business: what do I charge so that I actually make money? The short answer is the formula Selling Price = Cost / (1 - Desired Margin). Punch in your cost and the margin you want to keep, and the calculator hands you a price that covers what you spent and locks in your profit before you ever send an invoice.
That sounds simple, and the arithmetic is. The trouble is that most freelancers, agencies, and small business owners price by gut, by "what the last client paid," or by copying a markup percentage without realizing markup and margin are not the same thing. Those habits quietly leak money. This guide gives you the exact formula, explains every input, walks through three fully worked examples, and shows you how to read the result so your prices defend your profit instead of eroding it.
What a selling price calculator does
A selling price calculator takes two things you already know - your cost and your desired profit margin - and converts them into the price you should charge. It removes guesswork and the most common pricing error of all: setting a price that feels right but secretly leaves you with thin or negative margins after costs.
It works for physical products, digital goods, and services alike. A maker calculates the price of a handmade item; a consultant calculates the day rate that covers their overhead and target profit; an agency calculates a project fee that protects margin across a team. The mechanics are identical - only the definition of "cost" changes.
The calculator does three jobs. First, it guarantees your price is never below cost. Second, it bakes your target profit into the price automatically. Third, it lets you test scenarios in seconds: change the margin, change the cost, and watch the price move so you can find a number that is both profitable and competitive.
The selling price formula
There are two ways to build a selling price, and they produce different numbers from the same inputs. Knowing which one you are using is half the battle.
Margin-based selling price (the recommended approach):
Here the margin is expressed as a decimal. A 40% target margin is 0.40, so you divide cost by (1 - 0.40) = 0.60.
Markup-based selling price (simpler but easy to misread):
A 40% markup means multiplying cost by 1.40. This is not the same as a 40% margin, and conflating the two is the single most expensive mistake in this whole topic. We'll dedicate a full section to it.
Two supporting formulas you'll use alongside these:
- Profit per unit = Selling Price - Cost
- Margin achieved = (Selling Price - Cost) / Selling Price
Keep all four within reach. The first two set the price; the second two let you check that the price you landed on really delivers the margin you intended.
What each input means and where to find it
A formula is only as good as the numbers you feed it. Get the inputs wrong and you get a confident, precise, wrong answer.
Cost
Cost is everything you must spend to deliver one unit of the thing you sell. The danger is under-counting it.
- For a product: the cost of goods sold - materials, manufacturing or wholesale purchase price, packaging, and inbound shipping. Find these on supplier invoices and your purchase records.
- For a service: your direct delivery cost - your own time valued at a fair internal rate, subcontractor fees, software licenses used on the job, and travel. Pull these from your timesheets and expense records.
- Don't forget overhead: rent, software subscriptions, insurance, admin time. Either fold a per-unit share of overhead into cost, or make sure your target margin is fat enough to cover it. Pick one method and be consistent.
Desired margin
This is the slice of the selling price you want to keep as gross profit, expressed as a percentage. It is a business decision, not a calculation. Base it on your industry norms, your fixed costs, and the profit you need to grow. We cover realistic benchmarks below.
Desired markup (if using the markup formula)
Markup is profit expressed as a percentage of cost rather than of price. Some suppliers and trades quote in markup out of habit. If your supplier or your industry talks in markup, use the markup formula - just convert to margin when you compare numbers.
Worked examples, step by step
Numbers make this concrete. Here are three realistic scenarios across different business types.
Example 1: A product retailer (margin-based)
Maya runs a small homeware shop. A ceramic vase costs her 60 delivered (wholesale price plus packaging and shipping). She wants a 40% gross margin on everything she sells.
- Convert the margin to a decimal: 40% = 0.40.
- Calculate the divisor: 1 - 0.40 = 0.60.
- Apply the formula: Selling Price = 60 / 0.60 = 100.
- Check the profit: 100 - 60 = 40 profit per vase.
- Verify the margin: 40 / 100 = 0.40 = 40%. Correct.
Maya prices the vase at 100. Every sale keeps 40 toward her overhead and profit.
Example 2: A freelance consultant (overhead + margin)
Daniel is a marketing consultant. His true cost to deliver a one-day workshop is his time (valued at 400), plus 50 in travel and 30 in software and materials - a total cost of 480. He wants a 50% margin to cover his unbilled admin time and profit.
- Margin as a decimal: 0.50.
- Divisor: 1 - 0.50 = 0.50.
- Selling Price = 480 / 0.50 = 960.
- Profit per workshop: 960 - 480 = 480.
- Margin check: 480 / 960 = 50%. Correct.
Daniel quotes 960 for the day. Notice that a 50% margin doubles the cost - that is the maths of margin, not coincidence.
Example 3: An agency using markup (and converting to margin)
A web agency builds a site. Direct cost - designer and developer hours plus a stock-asset license - comes to 3,000. The owner is used to thinking in markup and wants to add 60% markup.
- Apply the markup formula: Selling Price = 3,000 x (1 + 0.60) = 3,000 x 1.60 = 4,800.
- Profit: 4,800 - 3,000 = 1,800.
- Now convert to margin to see the real picture: 1,800 / 4,800 = 0.375 = 37.5% margin.
Here is the lesson in one line: a 60% markup is only a 37.5% margin. If the owner thought they were keeping 60% of the price, they were off by more than 20 percentage points. Always check the achieved margin.
How to interpret the result
The price is only the start. Read it against three questions.
Does it clear your floor? Your absolute price floor is your cost. A price at or below cost means you lose money on every sale or work for free. The calculator should never return a number at or under cost - if it does, your margin input is zero or negative.
Does it hit your target margin? Run the margin check formula on the result. If you used the margin formula it will match by design; if you used markup, you may be surprised, as Example 3 showed.
Is it competitive? A profitable price the market won't pay is useless. Compare it to what similar businesses charge. If your calculated price sits well above the market, your cost is too high or your margin target is unrealistic - fix the input, don't just discount the output.
A "good" margin depends heavily on your sector. The table in the next section gives realistic ranges. As a rough orientation: many service businesses target 50%+ gross margins because their main cost is time; retail often runs leaner at 30-50%; high-volume goods can survive on slimmer margins because volume makes up the difference.
One more reading worth doing: compare the price to your next-best alternative use of the same resources. If a freelancer can earn more per hour on a different type of project, a low-margin price isn't just thin - it has an opportunity cost. The calculator tells you whether a price is profitable in isolation; your wider goals tell you whether it's the best profitable price you could be charging. Both matter.
Margin vs markup: the mistake that loses money
This deserves its own section because it costs real businesses real money every day.
- Margin = profit as a percentage of the selling price.
- Markup = profit as a percentage of the cost.
They diverge fast. The same profit looks like a smaller number when expressed as margin and a larger number as markup, because the price is always bigger than the cost.
| Markup on cost | Equivalent gross margin |
|---|---|
| 25% | 20% |
| 50% | 33.3% |
| 60% | 37.5% |
| 100% | 50% |
| 150% | 60% |
| 233% | 70% |
If you set "50%" thinking margin but apply it as markup, you keep 33.3% instead of 50% - a third less profit than planned. To convert: Margin = Markup / (1 + Markup), and Markup = Margin / (1 - Margin). Pick one language, state it explicitly on every quote, and convert when you compare.
When and why to use a selling price calculator
Reach for a selling price calculator whenever a price needs to be deliberate rather than guessed.
- Launching a new product or service. Set the right price from day one instead of "fixing it later" - re-pricing upward is far harder than pricing correctly to begin with.
- Your costs change. A supplier price rise, a new software subscription, or a pay raise to a subcontractor all shift your cost. Re-run the calculator to keep your margin intact.
- Quoting a custom project. Each project has a different cost base. Calculate from cost and target margin so every quote protects the same profit level.
- Running a discount. Before you offer 20% off, calculate what margin survives the discount so a promotion doesn't push you below your floor.
- Reviewing a product line. Periodically recalculate to catch items whose costs crept up while prices stayed flat - silent margin erosion is common and easy to miss.
The "why" is consistency. A calculator turns pricing from a feeling into a repeatable rule, which matters enormously once you have many products, many clients, or a team setting prices on your behalf.
Comparing pricing scenarios and benchmarks
Pricing is rarely one decision; it's a set of trade-offs. The table below shows the same product (cost = 60) priced at different target margins, plus rough sector benchmarks so you can sanity-check your own target.
| Scenario / sector | Typical target margin | Selling price on cost of 60 | Profit per unit |
|---|---|---|---|
| Aggressive / high-volume goods | 20% | 75.00 | 15.00 |
| Standard retail | 40% | 100.00 | 40.00 |
| Premium retail / branded | 55% | 133.33 | 73.33 |
| Service business (time-based) | 60% | 150.00 | 90.00 |
| Software / digital product | 80% | 300.00 | 240.00 |
Read it as a map, not a rulebook. Higher margins demand stronger differentiation - you have to justify the price with brand, quality, or outcome. Lower margins demand volume or efficiency. The right column for you is the one your market will actually pay while still covering your overhead. When you track these prices and margins inside an invoicing tool, you can see at a glance which products and clients are pulling their weight.
Pros and cons of cost-based selling price calculation
Calculating selling price from cost and margin is the right starting point, but it isn't the whole story. Be honest about both sides.
Pros
- Guarantees profitability. By construction, the price always sits above cost at your chosen margin.
- Simple and fast. Two inputs, one formula, instant answer - easy to apply across a whole catalog.
- Consistent. A clear rule means anyone on your team can price the same way you would.
- Adapts to cost changes. Re-run it whenever costs move and your margin holds.
Cons
- Ignores what the customer will pay. Cost-plus pricing can leave money on the table if buyers value the result far above your cost.
- Can price you out. If your costs are high, the formula may return a price the market rejects.
- Doesn't capture perceived value. Two services with the same cost can command very different prices based on outcome and brand.
- Overhead is easy to under-count. Forget a cost and your "safe" margin quietly shrinks.
The fix is to use cost-based calculation as your floor and sanity check, then layer value-based judgement on top. Never sell below the calculated price; charge above it when the market supports it.
Common mistakes when calculating selling price
- Confusing margin and markup. The biggest one. A 50% markup is a 33% margin. Always label which you mean and verify the achieved margin on the result.
- Under-counting cost. Leaving out packaging, payment-processing fees, shipping, or your own time inflates your apparent margin and hides losses.
- Ignoring overhead entirely. A "40% gross margin" can still lose money if rent, software, and admin time aren't covered somewhere.
- Forgetting transaction fees and discounts. Card fees and habitual discounts erode the margin you calculated. Build them in.
- Pricing once and forgetting. Costs drift upward; prices that never get reviewed slowly turn into loss-makers.
- Copying a competitor's price blind. Their cost base and strategy aren't yours. Use the market as a ceiling check, not as your pricing method.
- Rounding the wrong way. Rounding a price down to look friendly can quietly cut your margin - round in a way that protects it.
Best practices for pricing with confidence
- Define cost once and write it down. Decide whether overhead lives in cost or in the margin, then apply it the same way every time.
- Set your target margin deliberately. Base it on the profit you need plus a buffer for unbilled time and surprises - not on whatever feels comfortable.
- Always work in margin, convert from markup. Margin is the language of profitability; translate any markup figure before you trust it.
- Verify every result. Run the margin-check formula on the price you land on. If it doesn't match your target, find out why.
- Build in fees and discounts upfront. Add a slice for payment processing and any standard discount so your real margin survives contact with reality.
- Sanity-check against the market. Make sure a profitable price is also a payable one before you commit.
- Re-run on every cost change. Treat supplier increases and new subscriptions as triggers to recalculate.
- Track margins, don't just set prices. Use your invoicing or analytics tool to watch realized margins over time, not just the price you intended.
How selling price connects to running your business
Your selling price isn't an isolated number; it's the headwater of your whole financial system. Get it right and everything downstream gets easier.
It feeds revenue directly - every invoice you raise is selling price times quantity. It determines your gross profit, the money left after cost of goods, which in turn funds your overhead and your own pay. It sets your break-even point: the lower your margin, the more you must sell to cover fixed costs. And it shapes cash flow, because thin margins leave little buffer when a client pays late.
This is why the price you set in a calculator and the price that lands on your invoice need to be the same number. When they drift apart - through ad-hoc discounts, forgotten fees, or rounding - your real margin quietly disappears. Modern invoicing tools close that gap: you set a price, and the line items, totals, and analytics carry it straight through to payment, so you can see whether the margin you calculated is the margin you actually earned.
If you generate invoices, quotes, and estimates in one place, the selling prices you so carefully calculate stop being a spreadsheet exercise and start being a measurable part of your business performance. That feedback loop - price, invoice, measure, adjust - is what separates businesses that price for profit from those that merely hope for it.
Summary
A selling price calculator turns two known numbers - cost and desired margin - into a price that protects your profit. The core formula is Selling Price = Cost / (1 - Desired Margin); the markup variant is Cost x (1 + Markup), but always convert markup to margin so you know what you're really keeping. Count every cost, set a deliberate margin, verify the result, build in fees and discounts, and re-run whenever costs move. Use cost-based pricing as your floor, then charge more where the market supports it. Do that consistently and pricing stops being a guess and becomes a reliable engine for profit.
Frequently asked questions
What is the formula for selling price?
The margin-based formula is Selling Price = Cost / (1 - Desired Margin), where the margin is a decimal. For a 40% target margin, you divide cost by 0.60. The markup-based version is Selling Price = Cost x (1 + Markup). Both start from cost, but the margin formula is the safer default because it expresses profit as a share of the price you actually charge.
How do you calculate selling price from cost and margin?
Convert the margin percentage to a decimal, subtract it from 1, then divide your cost by that figure. For a cost of 60 and a 40% margin: 1 - 0.40 = 0.60, and 60 / 0.60 = 100. The result is a price that covers your cost and keeps exactly the margin you targeted. Always verify with (price - cost) / price.
What is the difference between margin and markup?
Margin is profit as a percentage of the selling price; markup is profit as a percentage of cost. They are not equal. A 50% markup equals only a 33.3% margin, and a 60% markup is a 37.5% margin. Mixing them up is the most common pricing error. Convert with Margin = Markup / (1 + Markup) to compare them on the same basis.
How do I price a product to make a profit?
Add up every cost to deliver one unit, decide the margin you need, then apply Selling Price = Cost / (1 - Margin). Make sure your cost includes materials, fees, shipping, and a share of overhead. Then check the price against what the market will pay. If it's competitive and above your cost, you have a profit-making price.
What is a good profit margin when setting a selling price?
It depends on your sector. High-volume goods may run on 20% margins, standard retail on 30-50%, service businesses often target 50%+ because time is their main cost, and digital products can exceed 80%. The right number is one that covers your overhead, funds growth, and stays payable in your market. Benchmark against similar businesses, not unrelated ones.
How do you calculate selling price with markup percentage?
Multiply your cost by one plus the markup expressed as a decimal: Selling Price = Cost x (1 + Markup). A cost of 3,000 with a 60% markup is 3,000 x 1.60 = 4,800. Then convert to margin to see your real profit share: 1,800 profit / 4,800 price = 37.5% margin. Always do that conversion so the markup figure doesn't mislead you.
Why does my selling price keep losing money?
Usually because cost is under-counted or margin is confused with markup. Check that your cost includes packaging, shipping, payment-processing fees, and a share of overhead and admin time. Confirm you applied margin, not markup. And review whether habitual discounts or rounding have eaten the margin you originally calculated. Re-run the formula with complete inputs.
Should I include overhead in cost or in the margin?
Either works, but pick one and be consistent. You can add a per-unit share of overhead to cost, or leave cost as direct delivery cost only and set a margin large enough to cover overhead and profit. Problems arise when the method changes between products or people, producing inconsistent prices across your business.
How often should I recalculate my selling prices?
Recalculate whenever a cost input changes - a supplier price rise, a new subscription, or a pay increase to a subcontractor. Beyond that, review your whole price list at least once or twice a year to catch silent margin erosion, where costs crept up while prices stayed flat. Tracking realized margins in your invoicing tool makes these reviews quick.
Does a selling price calculator work for services as well as products?
Yes. The formula is identical; only the definition of cost changes. For a service, cost means your direct delivery cost - your time at a fair internal rate, subcontractor fees, job-specific software, and travel. Apply Selling Price = Cost / (1 - Margin) just as you would for a product, and verify the achieved margin on the result.
Conclusion
A selling price calculator replaces guesswork with a rule you can trust. Once you know that Selling Price = Cost / (1 - Desired Margin), you can set a profitable price for any product or service in seconds, test scenarios, and protect your margin every time your costs move. The discipline is simple: count every cost, choose your margin on purpose, work in margin rather than markup, and verify the result before you commit.
The businesses that thrive aren't the ones that charge the most or the least - they're the ones that price deliberately and then watch whether reality matches the plan. Treat your selling price calculator as the floor, layer value-based judgement on top where the market allows, and review your numbers regularly. Do that, and pricing for profit stops being a hope and becomes something you can rely on.
Related guides
- Markup Calculator: Formula and Worked Examples
- Profit Margin Calculator: Formula, Examples and How to Use It
- Gross Margin Explained: Formula, Examples and How to Improve It
- Pricing Strategies That Improve Profitability
- Break-Even Calculator: Formula and Examples
- How to Price Your Services Profitably: The Complete 2026 Guide


