Margin vs. Markup Calculator: Compare Pricing Methods With Examples
pricingprofit marginmarkupretailsmall business finance

Margin vs. Markup Calculator: Compare Pricing Methods With Examples

RRecurrent Editorial Team
2026-11-04
6 min read

Compare markup and gross margin with formulas, examples, and a practical checklist for updating prices when costs change.

A margin vs. markup calculator helps you translate cost, selling price, profit, and target pricing into numbers you can use consistently. This guide explains the difference between markup and gross margin, provides formulas and worked examples for products and services, and gives you a practical checklist for revisiting prices when costs or business assumptions change.

Overview

Markup and margin both describe pricing, but they use different starting points. Markup measures profit as a percentage of cost. Gross margin measures profit as a percentage of selling price. Confusing the two can lead to prices that look profitable but produce less gross profit than planned.

For example, if an item costs $60 and sells for $90, the gross profit is $30. The markup is 50% because $30 is half of the $60 cost. The gross margin is 33.33% because $30 represents one-third of the $90 selling price.

MeasureFormulaWhat it tells you
Gross profitSelling price − costMoney left after the direct cost
MarkupGross profit ÷ costHow much was added to the cost
Gross marginGross profit ÷ selling priceWhat share of revenue remains after direct cost

Use a markup calculator when your pricing process begins with a known cost and an addition to that cost. Use a profit margin calculator when you have a target percentage of revenue you want to retain after direct costs. The distinction matters when comparing supplier prices, setting retail prices, quoting projects, or reviewing product profitability.

How to estimate

Start by choosing the result you need. A reliable margin vs. markup calculator should be able to work in both directions: from cost and markup to selling price, or from cost and target margin to selling price.

Calculate gross profit

Gross profit = selling price − cost

If your selling price is $250 and your direct cost is $150, gross profit is $100. Direct cost should include costs that rise directly with the sale, such as inventory, transaction-specific contractor work, materials, or fulfillment. Keep overhead separate unless you are deliberately building a fully loaded pricing model.

Calculate markup

Markup percentage = gross profit ÷ cost × 100

With a $150 cost and $100 gross profit, markup is 66.67%. To price from a known cost and markup target, use:

Selling price = cost × (1 + markup percentage)

For a 40% markup on a $150 cost, the selling price is $210: $150 × 1.40.

Calculate gross margin

Gross margin percentage = gross profit ÷ selling price × 100

Using the same $210 selling price and $150 cost, gross profit is $60 and gross margin is 28.57%.

Price from a target margin

To achieve a target gross margin, do not simply add that percentage to cost. Use:

Selling price = cost ÷ (1 − target margin)

For a 40% target margin on a $150 cost, the required price is $250: $150 ÷ 0.60. That price produces $100 of gross profit, which is 40% of the $250 selling price. A 40% margin therefore requires a higher price than a 40% markup.

Inputs and assumptions

The quality of the calculation depends on the inputs. Before entering numbers, define what each figure includes and whether it is recorded per item, per project, per client, or per billing period.

  • Direct cost: Include costs directly attributable to the sale. For a physical product, this may include purchase cost, packaging, and sale-specific fulfillment. For a service, it may include delivery labor, subcontractor time, materials, or project software used only for that engagement.
  • Fixed overhead: Rent, general software, insurance, accounting, and management time may not belong in a basic gross margin calculation. However, they still need to be covered by the business. Use a separate break-even analysis or fully loaded pricing model to test that.
  • Taxes and fees: Decide whether prices are before or after sales tax, VAT, payment processing fees, marketplace fees, and commissions. A VAT calculator or tax-inclusive price conversion may be needed for customer-facing prices. Keep tax collected on behalf of a tax authority distinct from revenue where appropriate.
  • Discounts and returns: Calculate against the expected net selling price, not only the list price, if discounts, refunds, credits, or returns are common.
  • Time: For services and freelance work, estimate delivery, project management, revisions, sales, and administration. A price can show a satisfactory margin while still producing an inadequate hourly return if the time estimate is incomplete.

Use consistent rounding. Calculate with unrounded figures, then round the final customer price according to your normal invoicing or checkout practice. If you compare products, use the same treatment of shipping, fees, discounts, and taxes across every item.

Worked examples

Product reseller

A reseller buys a product for $80 and wants a 50% markup. The selling price is $120: $80 × 1.50. Gross profit is $40, and gross margin is 33.33%: $40 ÷ $120. If the reseller instead requires a 50% gross margin, the selling price is $160: $80 ÷ 0.50. The difference shows why “50% markup” and “50% margin” should never be used interchangeably.

Service project

A consultant estimates $900 in direct delivery cost for a fixed-fee project. That figure includes planned delivery time and a specialist cost, but not general business overhead. With a target 30% gross margin, the project price is $1,285.71: $900 ÷ 0.70. Gross profit is $385.71. Before quoting, the consultant should confirm whether the time estimate includes meetings, revisions, handoff, and administration. A project pricing calculator can help convert an hourly rate and expected hours into a second pricing reference.

Cost increase

A product currently costs $50 and sells for $75, producing a 33.33% gross margin. If the cost rises to $56 and the business wants to preserve that same margin, the revised price is $84: $56 ÷ 0.6667, approximately. Simply adding the old $25 profit would produce an $81 price, but that would reduce the margin. Recalculate from the desired margin whenever costs change.

For a broader view, pair pricing calculations with a break-even calculator. Margin tells you what each sale contributes toward overhead and profit; break-even analysis estimates how many sales or how much revenue is needed to cover fixed costs.

When to recalculate

Pricing should be revisited whenever a key input changes, not only during an annual review. Recalculate after supplier or contractor cost changes, payment-fee changes, shipping changes, new discount policies, material or labor-rate changes, or a shift in the amount of time required to deliver the work.

For recurring services, review actual delivery time and direct costs against the assumptions used in the quote. For products, compare actual landed cost with the purchase price alone. For both, check the difference between list price and net price after discounts, refunds, commissions, and fees.

A simple review process is:

  1. Record the current cost, net selling price, gross profit, markup, and gross margin.
  2. List each changed input and the date it changed.
  3. Set the required margin or markup before calculating a new price.
  4. Test the revised price against discounts, taxes, fees, and realistic sales volume.
  5. Update quotes, price lists, product records, and invoice templates together.

Keep the calculator inputs with the pricing decision so you can reproduce the result later. If your business sells several products or services, maintain a separate calculation for each offer rather than applying one percentage blindly. The most useful margin vs. markup calculator is not a one-time answer; it is a repeatable pricing check whenever costs, rates, or commercial assumptions move.

Related Topics

#pricing#profit margin#markup#retail#small business finance
R

Recurrent Editorial Team

Senior SEO Editor

Senior editor and content strategist. Writing about technology, design, and the future of digital media. Follow along for deep dives into the industry's moving parts.