Profit margin and markup answer different pricing questions. This guide explains the difference, gives the formulas behind a profit margin calculator and markup calculator, and shows how to check a service quote or resale price after discounts, payment fees, and taxes.
Overview
Profit margin measures profit as a percentage of the selling price. Markup measures profit as a percentage of the underlying cost. Both are useful, but confusing them can leave a business charging less than intended.
For example, a cost of $100 and a selling price of $150 produces a $50 gross profit. The markup is 50% because the profit is half of the cost. The profit margin is 33.33% because the profit is one-third of the selling price.
| Measure | Formula | What it tells you |
|---|---|---|
| Gross profit | Selling price − cost | Money left before other expenses |
| Profit margin | Gross profit ÷ selling price | Profit as a share of revenue |
| Markup | Gross profit ÷ cost | Amount added to cost |
Use margin when reviewing revenue quality, comparing services, or setting a business target. Use markup when adding a consistent amount above cost. A pricing worksheet can calculate both so you can see whether a quote meets the intended result.
How to estimate
Calculate margin from cost and price
Start with the basic formula:
Profit margin = (selling price − total cost) ÷ selling price
Multiply the result by 100 to express it as a percentage. If a project sells for $2,000 and its relevant delivery cost is $1,200, the gross profit is $800. The margin is $800 ÷ $2,000, or 40%.
Calculate markup from cost and price
Use this formula:
Markup = (selling price − total cost) ÷ total cost
Using the same figures, $800 ÷ $1,200 equals 66.67% markup. The two percentages differ because they use different bases.
Find the selling price from a target margin
If you know the cost and the margin you want, use:
Required selling price = total cost ÷ (1 − target margin)
Enter the margin as a decimal. For a $1,200 cost and a 40% target margin, the calculation is $1,200 ÷ (1 − 0.40), producing a required price of $2,000.
Find the selling price from a target markup
For markup-based pricing, use:
Required selling price = total cost × (1 + target markup)
A $1,200 cost with a 50% markup produces a $1,800 price. That price has a 33.33% margin, not a 50% margin.
To convert between the two measures, use margin = markup ÷ (1 + markup) and markup = margin ÷ (1 − margin). A 50% markup equals a 33.33% margin. A 40% margin requires a 66.67% markup.
Inputs and assumptions
A calculator is only as useful as its inputs. Define what “cost” includes before setting a price.
- Direct labor: Include the realistic delivery time, not only the hours spent actively producing the work. For a freelancer, this may include meetings, revisions, project administration, and handoff time.
- Materials or subcontracted work: Add supplies, usage-based services, licenses purchased for the project, and any external fulfillment costs.
- Overhead allocation: Consider a reasonable share of software, equipment, insurance, workspace, bookkeeping, and other operating costs. Avoid assigning the same overhead twice.
- Payment fees: If a processor takes a percentage of the amount collected, treat that fee as a selling-cost input. Fixed transaction fees should also be included where material.
- Discounts: Calculate margin on the amount actually collected, not only on the list price. A discount can reduce margin even when the original quote looked healthy.
- Taxes: Separate taxes collected on behalf of a tax authority from business revenue when appropriate. A VAT-inclusive or sales-tax-inclusive customer price may need to be converted to a net selling price before calculating margin. See the VAT inclusive vs exclusive calculator guide for that check.
For a simple pricing check, record these fields: list price, discount percentage, net customer price, direct cost, allocated overhead, payment fee, gross profit, margin, and markup. Keep tax treatment in a separate field so it is clear whether the figure is part of revenue or collected separately.
When a fee is a percentage of the amount collected, and you want a target margin after that fee, a useful estimate is:
Required collected price = total cost ÷ (1 − fee rate − target margin)
This assumes the target margin is measured against the collected price and that the fee is charged as a percentage of it. Add fixed fees separately or include them in total cost. If a discount applies to a displayed list price, calculate the needed list price as required collected price ÷ (1 − discount rate).
Worked examples
Service pricing example
A freelancer estimates 18 hours for a project at an internal cost rate of $45 per hour. The direct labor cost is $810. Adding $90 for project-specific software and administration gives a total cost of $900.
To target a 35% margin, calculate $900 ÷ (1 − 0.35), which equals approximately $1,384.62. If the freelancer quotes $1,400, the gross profit is $500 and the margin is approximately 35.71%. The markup is approximately 55.56%.
Suppose the client receives a 10% discount and the payment fee is 3% of the amount collected. The discounted amount is $1,260, and the estimated fee is $37.80. Profit becomes $1,260 − $37.80 − $900, or $322.20. The resulting margin on collected revenue is approximately 25.57%. This illustrates why a quote should be checked after discounts and fees, not only at its headline price.
For a fixed-fee project, time tracking can improve the estimate after delivery. Compare actual hours and costs with the original assumptions, then adjust the next quote rather than treating one project as a permanent benchmark. The freelance project rate guide can help connect hourly goals with a fixed project fee.
Reselling example
A business buys a product for $32 and incurs $4 of packaging and fulfillment cost, creating a total cost of $36. A 50% markup produces a selling price of $54. The gross profit is $18, and the margin is 33.33%.
If the business needs a 40% margin instead, the price is $36 ÷ (1 − 0.40), or $60. The markup is then $24 ÷ $36, or 66.67%. This is why applying a margin percentage directly to cost will usually undershoot the desired selling price.
Reusable pricing-check worksheet
- Enter direct labor, materials, fulfillment, and allocated overhead.
- Add the inputs to calculate total cost.
- Enter the target margin or target markup, but do not treat them as interchangeable.
- Calculate the required price using the matching formula.
- Subtract planned discounts and payment fees to find the expected collected amount.
- Recalculate gross profit, margin, and markup using the final collected amount.
- Record the assumptions and the date so the quote can be reviewed later.
When to recalculate
Revisit a price whenever an input changes materially. Common triggers include a higher contractor or employee cost, a new software subscription, increased fulfillment expenses, payment-fee changes, a revised discount policy, or a change in the time required to deliver the work.
For services, recalculate after several completed projects reveal that actual delivery time differs from estimates. Scope changes are another important trigger: use a change order instead of absorbing additional work into the original margin. The scope creep tracker and change order guide provides a practical workflow for this situation.
For products, review prices when supplier costs, shipping, packaging, returns, or channel fees change. For subscriptions and business software, include the true recurring cost when assessing whether a tool still supports the intended return; the SaaS ROI guide covers that type of review.
Before sending a quote, run the final numbers in this order: total cost, target price, discount, payment fee, tax treatment, collected revenue, gross profit, margin, and markup. Save the assumptions with the quote or invoice. A consistent check prevents the most common error in pricing: believing a markup percentage guarantees the same profit margin.