All tools

Margin & Markup Calculator

Math

Given any two of cost, selling price, gross margin percent, and markup percent, solve for the other two plus the gross profit

Margin and markup describe the same gross profit against two different bases, and mixing them up is one of the most expensive arithmetic mistakes in retail and e-commerce: margin is profit divided by the selling price, markup is profit divided by the cost, so a 20 percent margin is the same deal as a 25 percent markup. Fill in exactly two of cost, price, margin percent, and markup percent, and this calculator solves for the remaining two along with the gross profit per unit. Reach for it when pricing a product from a target margin, back-solving the cost a supplier quote implies, or checking whether a markup a vendor quoted actually hits the margin you need. It covers gross figures only: overheads, payment fees, shipping, and tax are not modelled, and margin plus markup on their own cannot be solved since neither carries an absolute amount.

financemarginmarkuppricingprofit

How to use Margin & Markup Calculator

  • 1.Fill in exactly two of the four fields: cost, selling price, gross margin percent, or markup percent.
  • 2.Read the two solved values, highlighted in green, along with the gross profit per unit.
  • 3.Change any input to re-solve instantly, or clear the fields and start from a different pair.

Frequently asked questions

What is the difference between margin and markup?
Margin is profit divided by the selling price, markup is profit divided by the cost. On an item costing 80 sold at 100, the margin is 20 percent and the markup is 25 percent, from the same 20 of profit.
Why can't I enter just margin and markup?
Those two are mathematically dependent on each other and carry no currency amount, so they cannot pin down a cost or price. Enter one of them together with a cost or a price.
Can the margin be 100 percent or more?
No. A 100 percent margin means the cost is zero, and above that the arithmetic implies a negative cost, so the calculator rejects it. Markup, by contrast, has no upper limit.
Does this account for tax, shipping, or fees?
No. It computes gross margin and markup from the cost and price you enter. Deduct overheads, payment processing, and shipping from your figures yourself, or use the VAT / Sales Tax Calculator for the tax side.

Use via API, SDK, or MCP

cURL# Free: 1,000 req/day · Pro: 10,000 req/day
curl -X POST https://api.utilix.tech/v1/tools/margin-markup-calculator \
  -H "Authorization: Bearer utx_live_..." \
  -H "Content-Type: application/json" \
  -d '{"cost":80,"price":100}'

Get an API key from your dashboard · Full API docs →