Desired Margin Price Calculator
Calculate required selling price based on cost per unit and desired margin.
Required Selling Price
—
Guide
How it works
Use this calculator to find the selling price needed to achieve a desired gross margin percentage from a known cost. Essential for product pricing, retail margin planning, wholesale pricing, and ensuring every product is priced to hit a target profitability level.
What this calculator does
The desired margin price calculator helps you work out the selling price required to achieve a specific gross margin percentage when you know the cost of a product.
It uses:
- cost per unit
- desired margin percentage
This gives you the required selling price - the minimum price at which the product must be sold to deliver your target gross margin.
How to use the desired margin price calculator
- Enter your cost per unit - the total direct cost of producing or acquiring one unit, including materials, labour, packaging, and any other directly attributable costs
- Enter your desired margin - the gross margin percentage you want to achieve, expressed as a percentage such as 40
- The calculator instantly shows the selling price needed to achieve that margin
This is the reverse of calculating margin from a known price - instead of measuring margin after the fact, you use it to set price before going to market.
Desired Margin Price Formula
Selling Price = Cost Per Unit / (1 - Desired Margin %)
Where:
- Cost Per Unit = total direct cost per unit
- Desired Margin % = target gross margin expressed as a decimal
- Selling Price = price required to achieve the desired margin
Example calculation
If:
- Cost per unit = 30
- Desired margin = 40%
Then:
- Selling price = 30 / (1 - 0.40)
- Selling price = 30 / 0.60
- Selling price = 50.00
A product costing 30 must be sold at 50 to achieve a 40% gross margin. At that price, 20 of every 50 in revenue - 40% - remains as gross profit after covering the product cost.
What is desired margin pricing?
Desired margin pricing is a pricing approach where the selling price is calculated backward from a target gross margin rather than forward from cost plus a fixed markup.
It ensures that every product is priced to deliver a minimum acceptable level of profitability before overheads and other costs are considered. This makes it particularly useful for businesses that manage multiple product lines or SKUs with different cost structures - instead of applying a blanket markup, each product is priced to achieve the same margin target.
Margin-based pricing vs markup-based pricing
These two approaches to pricing from cost produce different results and are often confused.
- Margin-based pricing - calculates selling price from a target gross margin percentage. Selling Price = Cost / (1 - Margin%). A 40% margin on a 30 cost gives a 50 selling price.
- Markup-based pricing - adds a percentage of cost to arrive at selling price. Selling Price = Cost x (1 + Markup%). A 40% markup on a 30 cost gives a 42 selling price.
A 40% margin and a 40% markup are not the same - they produce different selling prices. Margin-based pricing is typically preferred when the target is expressed as a percentage of revenue, which is standard in most financial reporting and analysis.
Use the Markup Calculator if your pricing target is expressed as a markup percentage rather than a margin percentage.
What is a good gross margin to target?
Target margin varies significantly by business model and industry:
- Ecommerce and retail - typically 30% to 60% gross margin depending on product category and channel fees
- Wholesale - typically 20% to 40% gross margin
- Manufacturing - typically 25% to 50% gross margin
- SaaS and software - typically 60% to 85% gross margin
- Professional services - typically 50% to 80% gross margin
The right target margin is one that leaves sufficient gross profit to cover operating expenses and generate net profit at realistic sales volumes. Use the Break-Even Revenue Calculator to check whether your target margin supports break-even at expected sales volume.
Why desired margin pricing matters
Using desired margin pricing helps you:
- set selling prices consistently based on a clear profitability target rather than guesswork
- ensure every product in a range contributes adequate gross margin regardless of differing cost structures
- quickly calculate the minimum viable selling price when costs change
- compare your target selling price against market prices to assess viability
- build pricing models that scale across large product catalogues without manual margin calculation
How marketplace and channel fees affect desired margin
When selling through third-party channels - marketplaces, retailers, distributors - channel fees reduce the revenue you actually receive per unit sold. To account for this, calculate your desired margin on the net revenue after fees rather than the gross selling price.
For example, if Amazon charges a 15% referral fee on a 50 selling price, your net revenue is 42.50. Your actual gross margin is calculated on 42.50, not 50. Use the Channel Margin Calculator to account for channel fees in your margin analysis.
When to use this calculator
Use this calculator when you want to:
- set a selling price for a new product based on a target margin
- review existing prices to check they still deliver the target margin after cost changes
- model how cost increases affect the selling price needed to maintain margin
- compare target selling prices against competitive market prices
- build a product pricing spreadsheet across multiple SKUs with different costs
Common mistakes when using desired margin pricing
Common mistakes include:
- confusing margin percentage with markup percentage - they use different formulas and produce different prices
- using an incomplete cost per unit that excludes packaging, shipping, or other direct costs
- applying the same margin target to all products regardless of channel fees, competitive price sensitivity, or customer willingness to pay
- forgetting to account for channel fees when the product will be sold through third-party platforms
Desired margin price vs minimum profitable price
These two pricing calculators answer related but different questions.
- Desired margin price calculates the selling price needed to achieve a specific target margin
- Minimum profitable price calculates the lowest price at which a product can be sold while still making a profit after fees and desired profit per unit
Use the Minimum Profitable Price Calculator to calculate the floor price for a product, and this calculator to set a target price above that floor.
Desired margin price vs profit margin calculator
These tools work in opposite directions.
- Desired margin price calculator - input cost and target margin, output selling price
- Profit margin calculator - input revenue and cost, output actual margin
Use the Profit Margin Calculator to verify the actual margin achieved at any given selling price and cost.
Related calculations
Once you know your desired margin price, you may also want to:
- Use the Profit Margin Calculator to verify the margin at the calculated selling price
- Use the Markup Calculator if your target is expressed as a markup rather than a margin
- Use the Minimum Profitable Price Calculator to calculate the price floor before setting a target price
- Use the Product Price Calculator to build a full selling price including VAT and channel fees
Useful resources
- Shopify - ecommerce platform with product cost tracking and margin calculation built into listings
- QuickBooks - accounting software for tracking product costs and margins across your product range
- Xero - cloud accounting platform with cost and margin reporting for product-based businesses
FAQs
What is desired margin pricing?
Desired margin pricing calculates the selling price needed to achieve a specific target gross margin percentage from a known product cost. It ensures every product is priced to deliver a minimum acceptable level of profitability.
How do you calculate selling price from desired margin?
Selling Price = Cost Per Unit / (1 - Desired Margin %). For example, a 30 cost with a 40% target margin requires a selling price of 50.
What is the difference between margin and markup?
Margin is expressed as a percentage of selling price. Markup is expressed as a percentage of cost. A 40% margin and a 40% markup produce different selling prices - they are not interchangeable.
Why is the margin formula different from the markup formula?
Because margin is calculated as a proportion of revenue, while markup is calculated as a proportion of cost. Selling Price = Cost / (1 - Margin%) for margin-based pricing. Selling Price = Cost x (1 + Markup%) for markup-based pricing.
What margin should I target for an ecommerce product?
Most ecommerce businesses target 40% to 60% gross margin before channel fees. After marketplace fees, the effective margin is lower - so set your target margin to include an adequate buffer for fees, returns, and operating costs.
Can I use this calculator for service pricing?
Yes. Replace cost per unit with cost per hour or cost per engagement, and the formula produces the service rate needed to achieve the target margin.
How do I adjust my desired margin price for channel fees?
Calculate your desired margin on net revenue after fees. If a platform charges 15% on a sale, your effective revenue per unit is 85% of the selling price - use that as the basis for your margin calculation, or use the Channel Margin Calculator to model fees alongside margin.
What happens if the calculated selling price is above what the market will bear?
If the required selling price exceeds what customers will pay, you need to either reduce cost per unit or accept a lower margin. This is a fundamental pricing viability check - if neither option is possible at the target volume, the product may not be commercially viable at current costs.
Interpreting your result
Your desired margin price result should always be interpreted in context:
- compare it against your historical baseline
- review it alongside the main commercial or operational drivers behind the metric
- compare it across products, channels, periods, or segments where relevant
- avoid interpreting the result in isolation without checking the underlying input values
A single period can be noisy, so trend direction over several periods is usually more useful than one standalone result.
Data quality checklist
Before acting on this result, verify:
- the inputs use the same time period and reporting basis
- one-off anomalies are identified separately from steady-state performance
- discounts, refunds, taxes, or fees are handled consistently where relevant
- the underlying values are complete enough to support a meaningful conclusion
Small input inconsistencies can materially change the result.
How to improve this metric
Practical ways to improve this metric depend on the underlying business model, but often include:
- identify the main driver behind the result before making changes
- test one variable at a time so the impact is easier to measure
- compare performance by segment rather than only at an overall level
- review the metric regularly so changes can be caught early
Improvement is most reliable when measurement definitions remain stable over time.
Benchmarks and target setting
A good target depends on your industry, business model, and stage of growth.
When setting targets:
- compare against your own historical trend before relying on outside benchmarks
- define both minimum acceptable and aspirational target ranges
- review targets whenever pricing, cost, demand, or channel mix changes materially
- pair benchmark review with the underlying commercial context, not just the final number
Your own historical performance is usually the most practical benchmark.
Reporting cadence and decision workflow
For most teams, a simple cadence works best:
- Weekly: monitor the metric when trading conditions or campaign activity change quickly
- Monthly: compare the result against target and prior periods
- Quarterly: reassess assumptions, targets, and the main drivers behind the metric
A practical workflow is to calculate the metric, identify the primary driver of change, test one improvement, and then review the next comparable period before scaling.
Common analysis scenarios
You can use this metric in several practical scenarios:
- monthly performance reviews
- pricing, margin, or cost analysis
- planning and forecasting discussions
- investor, lender, or management reporting
In each scenario, pair the result with the underlying business context so decisions are not made on one number alone.
FAQ extensions
Should I compare this metric across channels?
Yes, but only when definitions and attribution rules are consistent.
How many periods should I review before making changes?
At least 3 comparable periods is a good baseline unless there is a clear data issue or one-off event.
What should I do if this metric improves but profit declines?
Check whether costs, discounts, conversion quality, or downstream profitability changed at the same time.
Explore more
More calculators in this topic
Continue exploring
Related calculators
Explore the next calculations most relevant to this topic.
pricing
Minimum Profitable Price Calculator
Calculate the minimum profitable price based on cost, fees, and desired profit per unit.
pricing
Markup Calculator
Calculate markup percentage based on cost and selling price.
pricing
Profit Margin Calculator
Calculate profit margin based on revenue and cost.