A profit margin calculator and markup calculator answer related questions, but they use different bases. This guide explains the difference between margin and markup, gives the formulas for gross profit and net profit, shows how discounts and payment fees change the result, and provides a repeatable pricing review worksheet for products, services, and reseller businesses.
Overview
Profit margin measures profit as a percentage of selling price or revenue. Markup measures profit as a percentage of cost. Both describe the same profit dollars, but the denominator changes, so the percentages are not interchangeable.
For example, if an item costs $60 and sells for $100, the gross profit is $40. The gross margin is $40 divided by $100, or 40%. The markup is $40 divided by $60, or 66.67%. Saying the item has a “40% markup” would describe a different price and could lead to underpricing.
Use a margin calculation when you want to understand how much of each dollar of revenue remains after direct costs. Use a markup calculation when you start with a cost and need to set a price. A profit margin calculator is useful for reviewing business performance, while a markup calculator is usually more practical for building a price from a known cost.
Core formulas
- Gross profit = Revenue − Cost of goods sold (COGS)
- Gross margin = Gross profit ÷ Revenue × 100
- Markup = Gross profit ÷ Cost × 100
- Price from markup = Cost × (1 + Markup percentage)
- Price from target margin = Cost ÷ (1 − Target margin percentage)
- Net profit = Revenue − COGS − operating expenses − other business costs
- Net margin = Net profit ÷ Revenue × 100
Keep percentages in decimal form when calculating: 30% becomes 0.30 and 25% becomes 0.25.
How to estimate
1. Start with a consistent selling price
Use the amount the business actually keeps as revenue for the calculation. If tax is collected from the customer and remitted separately, exclude that tax from revenue unless your accounting treatment requires otherwise. If you advertise a list price but routinely offer discounts, calculate using the expected transaction price rather than the undiscounted price.
2. Separate direct costs from operating costs
For gross margin, include costs directly connected to delivering the product or service. Examples may include inventory, materials, production labor, subcontracted delivery, packaging, and transaction-specific fulfillment. Overhead such as general software, rent, bookkeeping, and management time is usually assessed separately when calculating operating or net margin.
For a service business, direct cost can include the delivery hours that you pay for or the contractor cost required to complete the work. An owner's unpaid time is not free in a pricing decision: even if it is not recorded as a cash expense, include a reasonable labor value when testing whether the price is sustainable.
3. Calculate the result before and after deductions
First calculate the advertised or invoiced price. Then subtract discounts, refunds, payment-processing fees, marketplace fees, shipping subsidies, and other costs that reduce the amount retained. This produces a more useful effective margin than a calculation based only on the sticker price.
4. Work backward from a target
If you know the target markup, multiply cost by one plus the markup. If you know the target margin, divide cost by one minus the margin. The second method produces a higher price for the same percentage because margin is measured against the final price.
For example, a $60 cost with a 40% target margin requires a price of $60 ÷ 0.60, or $100. A 40% markup on the same cost produces a price of $84. That price has a margin of only 28.57%.
Margin-to-markup conversion
To convert a target margin to markup, use:
Markup = Margin ÷ (1 − Margin)
To convert markup to margin, use:
Margin = Markup ÷ (1 + Markup)
| Markup | Equivalent margin | Margin | Equivalent markup |
|---|---|---|---|
| 10% | 9.09% | 10% | 11.11% |
| 20% | 16.67% | 20% | 25% |
| 25% | 20% | 25% | 33.33% |
| 33.33% | 25% | 30% | 42.86% |
| 50% | 33.33% | 40% | 66.67% |
| 100% | 50% | 50% | 100% |
| 200% | 66.67% | 60% | 150% |
Inputs and assumptions
A useful pricing calculator is only as reliable as its inputs. Record the assumptions beside every result so someone reviewing the number can reproduce it.
- Unit or project cost: Include materials, purchased inventory, delivery labor, contractor charges, and other direct costs.
- Expected selling price: Use the actual customer price after standard discounts, not only the list price.
- Discount rate: Model planned promotions separately from one-off exceptions. A 10% discount means the business retains 90% of the original price before other deductions.
- Payment and platform fees: Enter either the actual fee or a clearly labeled estimate. Check whether the fee is a percentage, a fixed amount, or both.
- Shipping, returns, and allowances: Include costs the business absorbs. If customers pay these separately, keep them separate from the product margin calculation.
- Taxes: Treat sales tax, VAT, or similar charges according to your bookkeeping method. Do not silently mix tax-inclusive prices with tax-exclusive costs.
- Overhead allocation: For operating or net margin, allocate recurring costs using a consistent basis such as units sold, billable hours, or monthly revenue.
- Volume: State the expected number of units, projects, or billable hours. Fixed costs per unit change when volume changes.
Pricing review worksheet
- Write down the current customer price.
- Remove included tax if the calculation is intended to measure business revenue before tax.
- Subtract standard discounts and refunds.
- List every direct cost per unit or project.
- Subtract payment, marketplace, fulfillment, and delivery costs.
- Calculate gross profit and effective gross margin.
- Allocate relevant operating costs and calculate operating or net margin.
- Compare the result with the required margin, not an unverified industry assumption.
- Record the date, currency, volume assumption, and source of each cost.
Worked examples
Product pricing with markup and margin
A reseller buys an item for $60 and sells it for $100. Gross profit is $40. Gross margin is $40 ÷ $100 = 40%. Markup is $40 ÷ $60 = 66.67%.
Suppose the reseller offers a 10% discount. The customer pays $90, so gross profit before other costs is $30. The effective gross margin falls to $30 ÷ $90 = 33.33%, while markup on the original $60 cost is 50%. If a payment fee of $3 is absorbed by the business, retained profit becomes $27 and the effective margin becomes 30%.
Service pricing with a target margin
A freelancer estimates $800 of direct delivery cost for a project and wants a 40% gross margin. The target price is $800 ÷ (1 − 0.40) = $1,333.33. If the freelancer instead applies a 40% markup, the quote is $1,120 and the resulting margin is only 28.57%.
If the project is routinely discounted by 10%, the quoted price must account for that reduction. To retain $1,333.33 after a 10% discount, the list price is $1,333.33 ÷ 0.90 = $1,481.48, before considering taxes or payment fees. For project pricing, also test the expected hours and compare the result with a sustainable freelancer pricing calculator.
Net margin after overhead
A product generates $10,000 in revenue and has $6,000 in direct costs, leaving $4,000 in gross profit and a 40% gross margin. If operating expenses attributable to that period total $2,500, net or operating profit is $1,500 and the resulting margin is 15%. The 40% gross margin is not the money available for personal income, reinvestment, or tax; overhead still has to be covered.
When fixed costs are significant, pair the calculation with a break-even calculator to estimate the sales volume required before the business covers all costs.
When to recalculate
Revisit your margin and markup calculations whenever an input changes, rather than waiting for an annual review. At minimum, review them when a supplier changes cost, a contractor changes rates, a platform or payment fee changes, shipping becomes more expensive, or a product is moved into a new tax treatment.
Recalculate after introducing a discount, bundle, subscription, commission plan, or free-shipping offer. Promotions often change the effective selling price without changing the underlying cost, which can make an apparently healthy markup produce a weak margin.
For a practical monthly review, choose your highest-revenue products or services first. Compare quoted price, actual collected revenue, direct cost, fees, and refunds. Flag any result that differs materially from the pricing assumption. Then update the calculator inputs and decide whether to change the price, reduce the cost, adjust the offer, or accept the lower margin for a deliberate strategic reason.
Keep gross margin, operating margin, and net margin labeled separately. That simple habit prevents revenue from being mistaken for profit and makes the worksheet useful when prices, costs, discounts, and business conditions change.