Pricing and profitability
How to calculate selling price from cost and target margin
Choose the right margin or markup formula, calculate a defensible starting price and account for costs that the basic equation does not include.
By FollowIncome · · 8 min read · Reviewed by FollowIncome editorial team
A selling price formula can turn cost and a profit target into a useful starting point, but only when the percentage is defined correctly. Margin and markup use different bases, so applying the wrong formula can produce a price that misses the intended profit.
For a target margin, divide cost by one minus the margin decimal. For a markup, multiply cost by one plus the markup decimal. Include the relevant cost basis, keep margin and markup distinct, and test fees, discounts, tax and market constraints before using the result in a quote.
Define the cost behind one sale
Start with the cost associated with the unit, service package or project being priced. Use one currency and one consistent scope. Depending on the decision, cost may include materials, direct labor, subcontractors, packaging or other costs that change with the sale.
Do not silently mix direct cost with every business overhead. If overhead must be recovered through the price, choose and document a reasonable allocation or test it separately with the required sales volume. A formula is only as complete as the cost basis entered.
- Define exactly what one sale includes
- Use costs from the same scope and currency
- Document whether fees and allocated overhead are included
- Keep tax-inclusive and tax-exclusive amounts consistent
Use the target margin formula
Margin is profit divided by selling price. To calculate a price for a target margin, convert the percentage to a decimal and divide cost by one minus that decimal.
Selling price = cost ÷ (1 − target margin). A target margin must be below 100% when cost is positive because no finite price can leave 100% of revenue as profit while also covering that cost.
Do not substitute markup for margin
Markup is profit divided by cost. Its formula is selling price = cost × (1 + markup). Adding 40% to cost therefore creates a 40% markup, not a 40% margin.
With a cost of 60 and a target margin of 40%, the price is 60 divided by 0.60, or 100. Profit is 40, which is 40% of the 100 selling price. A 40% markup would instead produce a price of 84 and a margin of about 28.57%.
Adjust for fees, discounts and tax
A basic cost-and-margin equation does not automatically include percentage payment fees, marketplace commissions, expected discounts, refunds, shipping, tax or currency conversion. Add fixed costs to the cost basis when appropriate and solve percentage deductions explicitly rather than subtracting them after the decision.
Keep tax treatment consistent: compare tax-exclusive cost with a tax-exclusive selling price unless the business decision requires an inclusive basis. Confirm the applicable treatment with a qualified adviser when accounting or tax rules matter.
Test whether the price works in practice
The calculated result is not proof that customers will accept the price or that demand will remain unchanged. Compare the result with the value delivered, realistic alternatives, contractual constraints and the volume the business can actually sell and deliver.
After setting a candidate price, calculate contribution and break-even volume, then compare planned assumptions with actual sales, discounts, payments and costs. Reprice when the underlying cost or delivery model changes instead of protecting an outdated percentage.
Keep this checklist
- The priced unit or service scope is defined
- Cost and selling price use one consistent basis
- The target is labeled as margin or markup
- Fees, discounts, tax and refunds are reviewed
- The result is tested against demand and delivery capacity
- Actual price and cost results will be reviewed later
Frequently asked questions
What is the formula for selling price from cost and margin?
Divide cost by one minus the target margin expressed as a decimal. For example, a cost of 60 and a 40% target margin gives 60 divided by 0.60, which equals 100.
How do I calculate selling price using markup?
Multiply cost by one plus the markup expressed as a decimal. A cost of 60 with a 40% markup gives 60 multiplied by 1.40, which equals 84.
Are 40% margin and 40% markup the same?
No. Margin uses selling price as its base, while markup uses cost. On a cost of 60, a 40% margin requires a price of 100, while a 40% markup produces a price of 84.
Should payment fees be included in selling price?
If the fee affects the economics of the sale, include it in the model. Fixed fees can be added to relevant cost; percentage fees usually need to be included as a deduction from revenue when solving for price.
Why FollowIncome publishes this
FollowIncome publishes practical operating guidance for solo founders and small teams. This article is grounded in traceable records, explicit assumptions and the documented product workflows linked below.
This article provides general operational information, not accounting, tax, legal or financial advice.