Gross Margin Calculator (with Cost Ratio) | Free Profitability Tool

Calculate gross profit, gross margin rate, and cost ratio instantly from revenue and cost. Also reverse-calculates the selling price needed to hit a target margin, useful for pricing and negotiating with suppliers.

What Is a Gross Margin Calculator?

A gross margin calculator instantly works out your gross profit, gross margin rate, and cost ratio from just two numbers: revenue and cost. It is a foundational profitability metric that applies across retail, wholesale, manufacturing, and restaurants alike, so it is useful whenever you need to set a price or negotiate with a supplier.

Because cost ratio is always 100% minus gross margin rate, the two figures are really two sides of the same coin. Looking at both together, rather than tracking just one in isolation, gives you a more complete picture of whether a price makes sense.

How to Use This Calculator

  1. Enter your revenue Type in the selling price of your product or service (pre-tax is standard).
  2. Enter your cost Enter the direct cost tied to that product or service, such as the purchase price or manufacturing cost.
  3. Check the results Gross profit, gross margin rate, and cost ratio are calculated automatically.
  4. (Optional) Work backward from a target margin Enter your cost and a target gross margin rate in reverse mode to find the selling price you need to charge.

Tips for getting more out of it

  • Include labor and overhead directly tied to production in your cost figure for a more accurate gross margin.
  • Typical gross margin ranges vary widely by industry — around 20–30% for retail and 60–70% for restaurants — so compare against businesses in the same industry.
  • Since cost ratio equals 100% minus gross margin rate, you only need to track one of the two; the other follows automatically.
  • Use the reverse mode to set a selling price that protects your target margin when costs rise or you are planning a price change.

When This Calculator Comes in Handy

Pricing a new product or menu item

As soon as you know the cost, run it through reverse mode to land on a selling price that locks in the margin you are aiming for.

Negotiating with suppliers

See how your margin would shift if a supplier's price changes, so you walk into the negotiation with a clear sense of what you can accept.

Comparing profitability across products

Run the revenue and cost for each product through the calculator to see at a glance which ones are carrying your margin and which are not.

Modeling a price increase or discount

Adjust the selling price or cost to see how your margin would respond, so you know the impact before you actually change a price.

Glossary

Gross profit
What is left of revenue after subtracting the cost of goods sold (purchase price or manufacturing cost). Also called gross margin in dollar terms, it is measured before operating expenses are deducted.
Gross margin rate
Gross profit expressed as a percentage of revenue. It is calculated as gross profit divided by revenue, multiplied by 100.
Cost ratio
Cost expressed as a percentage of revenue. It always equals 100% minus the gross margin rate, making it the flip side of the same measurement.
Operating expenses (OpEx)
Costs such as salaries, rent, and advertising that sit outside the direct cost of making or buying a product. Subtracting these from gross profit gives you operating profit.
Operating margin
Operating profit — revenue minus both cost and operating expenses — expressed as a percentage of revenue. Where gross margin reflects the profitability of the product itself, operating margin reflects the profitability of the business as a whole.

Frequently Asked Questions

Gross margin is gross profit (revenue minus cost) as a percentage of revenue, while cost ratio is cost as a percentage of revenue. The two always add up to 100%.

Generally yes, but the ideal range differs a lot by industry, so it is more useful to compare your margin against competitors or your own past performance rather than judging it in isolation.

Gross margin shows the profitability of your product or service itself, while operating margin also accounts for expenses like salaries and rent. Tracking both helps you see where cost improvements are possible.

Selling price equals cost divided by (1 minus the target gross margin rate). Enter your cost and target margin in the reverse mode above to calculate it automatically.
Tool-kun

Side Note — How Gross Margin Differs From Operating Margin

Gross margin measures the profit left after subtracting only the direct cost of goods sold from revenue. It does not yet account for operating expenses such as salaries, rent, or marketing, so a healthy gross margin does not automatically guarantee a healthy bottom line.

That is why financial analysis typically looks at both gross margin and operating margin together. Gross margin reflects the profitability of the product or service itself, while operating margin reflects the profitability of the business as a whole after all operating costs are deducted.

Gross margins also vary enormously by industry: wholesalers and retailers often run in the 20–30% range because they resell goods with a relatively thin markup, while service-heavy industries such as restaurants or salons can exceed 60–70% because their direct costs are limited to ingredients or supplies. Comparing margins across very different industries can be misleading for this reason.