GlassJar Accounting Software

Explore Tips & Resources


Margin Calculator

Margin is profit as a percentage of price. Markup is profit as a percentage of cost. A 33.3% margin and a 50% markup describe the same sale, so quoting the wrong one quietly misprices your work. This calculator shows both side by side so the numbers cannot drift apart.
Fill in any two fields. The other two are calculated for you.
Download:
Prepared by the user with the free GlassJar pricing calculator. Figures are as entered by the user and have not been reviewed.  |  glassjar.io

Profit margin answers one question: of every dollar a customer pays you, how much do you keep? Sell something for $12.00 that cost $4.25, and $7.75 of the sale is profit, which makes the margin 64.6%. The formula is price minus cost, divided by price, times 100. Note the divisor. Margin is always measured against the price, never the cost, and that distinction is what separates it from markup.

This calculator works in whichever direction your question runs. Most people arrive knowing cost and price and wanting the margin. But it is just as common to start from the other end: you know your cost and the margin the business needs, and the unknown is the price. Fill in any two of cost, price, margin, and markup, and the calculator completes the other two immediately, along with profit per unit. There is no button to press and no form to submit.

margin calculator

Gross margin, this calculator, and what it does not include

The figure this page computes is a gross margin on a single unit: price against direct cost. It deliberately does not fold in rent, payroll, insurance, or the other overhead a business carries, because those are not costs of one unit. They belong to a different question, which is how many units you must sell before the gross profit covers them. That question has its own tool, the break-even calculator, and the two are designed to be used together: margin tells you what each sale earns, break-even tells you how many such sales the month requires.

The margin that matters is the blended one

A price list rarely fails at the level of a single product. It fails in the mix. Expand this calculator into its pricing sheet mode and you can enter your whole line, one row per product, with cost, price, and optional monthly units. Every row shows its own margin, markup, and profit, and the totals row shows revenue, cost, profit, and the blended margin across everything, weighted by the volumes you entered.

It is entirely possible for every individual product to look healthy while the blend sits far lower, because the thin-margin items are the ones selling. Seeing that number is usually the moment a pricing conversation gets serious. The finished sheet downloads as a PDF, an Excel workbook, or a CSV, and prints cleanly.

If you tend to think in terms of what you add on top of cost rather than what you keep out of price, the markup calculator is this same engine with markup leading, and it explains the markup-to-margin conversion in more depth.

Private by design

Margins are among the most sensitive numbers a business has. This tool runs entirely in your browser: calculations, the pricing sheet, and the files you download are all produced on your own device, and GlassJar never receives a single figure. Saving between visits is strictly opt-in, stores the data only in your browser, and sits next to a clear button that erases it completely.

Frequently Asked Questions

How do I calculate profit margin?
Subtract cost from price, divide by the price, and multiply by 100. An item that costs $6 and sells for $10 has a margin of 40%. This calculator computes it instantly and can also work backward from a target margin to the price you would need to charge.

How do I price a product from a target margin?
Divide the cost by one minus the margin expressed as a decimal. To earn a 40% margin on a $6 cost, divide 6 by 0.6, which gives a price of $10. Enter a cost and a margin in this calculator and it performs this step for you.

What is the difference between margin and markup?
Both compare profit to another number: margin compares it to the price, markup compares it to the cost. The same sale always shows a markup higher than its margin. A 40% margin, for example, corresponds to a 66.7% markup.

What is a blended margin?
Blended margin is the overall margin across every product you sell, weighted by how much of each one actually sells. It is total profit divided by total revenue. The pricing sheet in this tool computes it from your rows, and it is often noticeably lower than the margin on your best products.

Why is a margin of 100% or more impossible?
Margin is profit as a share of the selling price, and profit can never exceed the price itself unless the cost is negative. As the price grows far beyond cost, margin approaches 100% but never reaches it. Markup has no such ceiling, which is one more way to tell the two apart.

Does GlassJar store the numbers I enter?
No. Everything is calculated in your browser and nothing you type is transmitted. GlassJar receives only your email address, and only when you choose to download a file.

Last Updated:

Explore More Insights