A profit margin calculator and markup calculator answer related but different pricing questions. This guide shows how to calculate both, set a price for a target profit margin, account for discounts and payment fees, and keep a reusable pricing worksheet for products, services, and freelance quotes.
Overview
Margin and markup both describe profit, but they use different denominators. Confusing them can lead to quotes that look profitable while producing less profit than expected.
- Profit is selling price minus total cost.
- Profit margin is profit divided by selling price.
- Markup is profit divided by cost.
The basic formulas are:
Profit = Selling price − Cost
Profit margin = Profit ÷ Selling price × 100
Markup = Profit ÷ Cost × 100
For example, if a service costs $600 to deliver and you charge $1,000, the profit is $400. The margin is 40% because $400 is 40% of the $1,000 selling price. The markup is 66.7% because $400 is 66.7% of the $600 cost.
That difference matters when a client, customer, or sales channel gives you a target margin. A 40% margin does not require a 40% markup. To reach a target margin, use this pricing formula:
Required price = Cost ÷ (1 − Target margin)
Express the target margin as a decimal. For a 40% target margin, use 0.40. This formula is useful for a small business pricing calculator, a product price review, or a freelancer preparing a quote.
How to estimate
Start with a worksheet that separates costs from pricing assumptions. Use one row for each scenario so you can compare a standard price, a discounted price, and a target-margin price.
| Input or result | Example |
|---|---|
| Direct cost | $600 |
| Target margin | 40% |
| Required selling price | $600 ÷ (1 − 0.40) = $1,000 |
| Gross profit | $1,000 − $600 = $400 |
| Margin | $400 ÷ $1,000 = 40% |
| Markup | $400 ÷ $600 = 66.7% |
For a product, direct cost might include materials, packaging, and per-unit fulfillment. For a service, it may include delivery time, subcontractor payments, software used specifically for the project, and an allocated share of overhead. Freelancers should also account for unpaid sales, administration, revisions, and maintenance time. An hourly rate to project price calculator can help turn those time and overhead assumptions into a more complete project cost.
Next, test the effect of a discount. If the regular price is $1,000 and the customer receives a 10% discount, the collected price is $900. With the same $600 cost, profit falls to $300. The margin becomes 33.3%, and the markup becomes 50%.
This is why a discount should be entered into the pricing calculation rather than treated as a minor adjustment. If you want to preserve a 40% margin after a 10% discount, first calculate the required collected price: $1,000. Then divide it by the proportion left after the discount: $1,000 ÷ 0.90 = $1,111.11 as the pre-discount list price.
Inputs and assumptions
A reliable profit margin calculator is only as useful as its inputs. Review these assumptions before relying on the result:
1. Total cost
Do not use only the most visible expense. Include variable costs and a reasonable allocation of fixed costs where relevant. For a service business, convert expected delivery hours into a cost using a rate that reflects the owner’s labor and operating expenses. For a product, include costs that rise with each sale and identify which costs are monthly or fixed.
2. Discount basis
Decide whether the discount applies to the full price, selected items, or a recurring contract period. Calculate margin on the amount actually collected, not the undiscounted list price.
3. Payment fees
Payment processors may charge a percentage, a fixed amount, or both. Fees change by provider, plan, payment method, and region, so enter the rate and fixed charge that apply to your situation rather than relying on a generic example.
If the fee is a percentage of the customer price and there is a fixed fee, and you want a target margin measured against the customer price, use:
Required price = (Cost + Fixed fee) ÷ (1 − Target margin − Fee rate)
For a $600 cost, a 40% target margin, a 3% fee, and a $0.30 fixed fee, the calculation is approximately $600.30 ÷ 0.57, or $1,053.16. Confirm your chosen margin convention before using this formula. Some businesses define revenue after payment fees, while others treat fees as a separate selling expense.
4. Taxes and VAT
Separate sales tax or VAT collected on behalf of a tax authority from the revenue you retain, unless your accounting treatment requires something different. Tax rules vary by location and business structure. A VAT calculator may help with the arithmetic, but it does not replace local tax guidance.
5. Rounding and minimum charges
Round the final customer price in a deliberate way. If a calculation produces $1,053.16, decide whether your commercial price should be $1,053, $1,055, or another amount. Recalculate the actual margin after rounding.
Worked examples
Example 1: Product price without a discount
A product has a total unit cost of $24, and the business wants a 35% margin. The required price is $24 ÷ 0.65, or approximately $36.92. Profit is $12.92. The margin is 35%, while the markup is approximately 53.8%. A business using a 35% markup instead would charge $32.40, producing a margin of only 25.9%.
Example 2: Freelance project quote
A freelancer estimates $900 in delivery cost, including paid tools, project labor, and allocated overhead. For a 45% target margin, the starting price is $900 ÷ 0.55, or approximately $1,636.36. If the quote includes a likely revision cycle that adds $150 in cost, the revised price should be $1,050 ÷ 0.55, or approximately $1,909.09. This illustrates why a project estimate should include a revision buffer before the quote is sent.
Example 3: Comparing margin and markup
Suppose a business sells an item for $80 with a cost of $50. Profit is $30. Margin is 37.5% ($30 ÷ $80), while markup is 60% ($30 ÷ $50). Neither percentage is “the” profit percentage; each answers a different question. Margin evaluates profit against revenue, while markup evaluates how much has been added to cost.
For a wider view of fixed and variable cost coverage, pair this worksheet with a break-even calculator. If payroll is a major component of delivery cost, review the assumptions in the payroll cost calculator guide as well.
When to recalculate
Revisit your pricing calculator whenever an input changes, not only at the end of the financial year. Recalculate when supplier costs, contractor rates, wages, software subscriptions, fulfillment costs, or payment fees change. Also review pricing before introducing a discount, changing a package, accepting a new sales channel, or quoting work with a different scope.
For recurring services, compare the original assumptions with actual time and expenses after several completed cycles. A service that appeared to have a 40% margin may perform differently if revisions, support, meetings, or administration take longer than expected. Update the cost model before renewing or extending the offer.
Keep three scenarios in your worksheet: the standard price, the lowest acceptable price, and the target-margin price. Label whether each result includes discounts, transaction fees, taxes, and overhead. Then use the same definitions every time you compare offers.
The practical sequence is simple: list the full cost, choose the margin you need, calculate the required price, test discounts and fees, and check the resulting margin and markup separately. Save the worksheet with the date and assumptions used. When those assumptions change, update the inputs rather than guessing from the previous quote.