Margin and markup answer different questions
Profit margin and markup both start with the same amount: selling price minus cost. They differ in what they compare that profit with. Margin asks what share of sales revenue remains after direct cost. Markup asks how much was added on top of cost to set the selling price.
gross profit = selling price − cost
gross margin = gross profit ÷ selling price × 100
markup = gross profit ÷ cost × 100
If an item costs 60 and sells for 100, gross profit is 40. Margin is 40 divided by 100, or 40%. Markup is 40 divided by 60, or 66.67%. Both are correct, but they describe different bases. Confusing them is one of the most common pricing errors.
Using the calculator
Enter the direct cost per unit, selling price per unit, and quantity. Both money inputs must use the same currency, but that currency can be dollars, euros, pounds, rupees, yen, or any other unit. Percentages are unchanged by currency.
The result shows per-unit profit, gross margin, markup, total revenue, total cost, and total gross profit. Quantity can represent physical items, billable hours, subscriptions, tickets, or any repeated unit, as long as cost and price refer to that same unit.
Do not mix tax-inclusive revenue with tax-exclusive cost unless that is deliberately how the business reports. Keep the accounting basis, time period, and currency consistent.
Gross profit is not net profit
Gross profit deducts the direct cost of what was sold. For a retailer this is usually the purchase cost of inventory plus directly attributable acquisition costs. For a manufacturer it can include raw materials and production labour. For a service business, the classification of delivery labour varies with its accounting policy.
Net profit goes further. It deducts operating expenses, interest, taxes, depreciation, and other costs from revenue. A product can carry a positive gross margin while the overall business loses money because rent, marketing, support, administration, payment fees, returns, and financing consume more than the gross profit.
This calculator therefore describes gross unit economics. It does not certify that a business, campaign, or product line is profitable after every expense.
Converting target margin to price
When the cost and desired margin are known, rearrange the margin formula:
selling price = cost ÷ (1 − target margin)
Write the target percentage as a decimal. A 40% target is 0.40. With cost of 60, the price is 60 divided by 0.60, which equals 100.
Adding 40% to cost is not the same operation. It produces a price of 84, profit of 24, and margin of only 28.57%. The added 40% is markup because it was calculated on cost.
As target margin approaches 100%, the required price grows rapidly. A 100% margin is impossible when cost is above zero because some revenue must cover that cost.
Converting markup to margin
The two percentages can be converted without knowing the currency amounts:
margin = markup ÷ (1 + markup)
markup = margin ÷ (1 − margin)
Use decimals in these equations. A 100% markup is 1.00, so margin is 1 ÷ 2 = 50%. A 25% margin is 0.25, so required markup is 0.25 ÷ 0.75 = 33.33%.
The gap grows at higher percentages. That is why a team quoting “we need 50%” must say whether it means margin or markup before anyone changes a price list.
Discounts and break-even
The current gross margin is also the maximum percentage discount from the current selling price before gross profit reaches zero, assuming unit cost stays unchanged.
An item priced at 100 with cost of 60 can be discounted by 40% to a price of 60. Any deeper discount produces a gross loss. This relationship works because both margin and discount are measured against the original selling price.
However, break-even at the unit level does not cover overhead, selling fees, or transaction costs. A practical minimum price often needs to be higher than direct cost. If a marketplace takes a percentage fee, calculate that fee on the discounted selling price and include it in the economics.
Quantity and total profit
Total gross profit is per-unit gross profit multiplied by quantity:
total gross profit = (price per unit − cost per unit) × quantity
This linear calculation assumes every unit sells at the same price and carries the same direct cost. Real operations may have volume discounts, tiered fees, spoilage, returns, or capacity costs that change at different quantities.
Revenue growth does not guarantee profit growth. Selling more units at a negative per-unit profit increases the total loss. Selling more at a positive gross profit can still require extra staff, warehouse space, or advertising that changes net profitability.
Worked examples
A shop buys an item for 24 and sells it for 40. Gross profit is 16. Margin is 16 ÷ 40 = 40%. Markup is 16 ÷ 24 = 66.67%. Selling 250 units produces revenue of 10,000, direct cost of 6,000, and gross profit of 4,000.
A consultant bills 150 per hour and treats 45 of delivery labour and software as direct hourly cost. Gross profit is 105 per billed hour, gross margin is 70%, and markup is 233.33%. This does not account for unpaid sales time, leave, administration, or tax; an effective hourly-rate calculator is better for that wider question.
A seller pays 80 for a product and wants a 20% margin. Required price is 80 ÷ 0.80 = 100. Adding 20% to cost would price it at 96, creating a margin of only 16.67%.
Tax, shipping, and platform fees
Whether sales tax or value-added tax belongs in revenue depends on the reporting question. Tax collected on behalf of a government is usually excluded from business revenue, so margin analysis commonly uses tax-exclusive price and tax-exclusive cost. A customer-facing retail comparison may use tax-inclusive amounts instead. Consistency is essential.
Shipping can be revenue, cost, or both. If customers pay a delivery fee and the business pays a carrier, include both sides when measuring the order’s economics. Free shipping is still a cost even though the customer sees no separate charge.
Marketplace commissions and payment-processing fees are often variable with revenue. A simple gross-margin figure that omits them can overstate contribution. For decisions about advertising or channel profitability, subtract every cost that changes with the sale.
Returns, waste, and unsold inventory
The calculator assumes units entered are sold and retained. Returns reverse revenue and may add handling, shipping, or damage costs. Perishable goods create waste; fashion and seasonal stock may require clearance discounts. Those effects raise the effective cost of each successful sale.
One useful approach is to spread expected loss across sellable units. If 100 units cost 10 each but only 90 are expected to sell, the effective inventory cost is 1,000 divided by 90, or 11.11 per sold unit, before other expenses.
Historical averages can help, but unusual launch periods or supply disruptions can make them misleading. Separate stable baseline economics from temporary events.
Limits of the result
The output is exact arithmetic for the inputs, not a forecast. It assumes cost, price, and quantity are known and comparable. It does not model demand changing when price changes, currency conversion, inflation, inventory timing, fixed expenses, financing, or tax liability.
Accounting definitions can also vary by industry and reporting framework. A cost classified as direct by one company may be operating expense at another. Compare margins only when businesses use similar definitions and periods.
Use the result to check a price, explain the margin-markup distinction, or build a first unit-economics view. Use full financial statements and professional accounting advice for reporting, valuation, lending, or tax decisions.