Gross Margin Calculator
Enter revenue and COGS to see gross profit and gross margin instantly.
-
1Enter data
Enter content, paste text or load a file from disk. -
2Click the button
The tool will immediately process your data in the browser. -
3Get the result
Copy the finished text or save the file to your device.
return "Result ready in 0.1s";
}
Rate this tool:
Related tools
Other tools you may find usefulHow to Use the Gross Margin Calculator
The gross margin calculator is a simple tool for quickly checking the profitability of a sale. Enter two amounts: revenue and cost of goods sold (COGS). The defaults are $1,000 in revenue and $400 in COGS, but you can change them to your own values.
The calculator returns two results: gross profit and gross margin. The formula for gross profit is revenue minus cost of goods sold (COGS), or gross profit = revenue - COGS. Gross margin is gross profit divided by revenue and multiplied by 100%: gross margin = (gross profit ÷ revenue) × 100%. The calculation works when revenue is greater than 0; for revenue of 0 or less, the calculator uses a margin of 0, although with zero revenue the margin is undefined.
For the default values, it looks like this:
- Revenue: $1,000.00.
- Cost of goods sold (COGS): $400.00.
- Gross profit: $1,000.00 - $400.00 = $600.00.
- Gross margin: $600.00 ÷ $1,000.00 × 100% = 60.00%.
You get the result as soon as you enter the numbers. The calculations run locally in your browser, so you can test different scenarios freely. Treat the calculator as a starting point for further analysis, not as a complete accounting of your company's profit.
How Gross Margin Differs from Markup
Gross margin and markup are often confused because both are based on gross profit. The difference is the value we use as the percentage base. Gross margin compares gross profit to revenue. Markup compares gross profit to cost of goods sold.
The formulas are:
- gross margin = (gross profit ÷ revenue) × 100%,
- markup = (gross profit ÷ cost of goods sold) × 100%.
Example with the calculator's default values: revenue $1,000.00, cost of goods sold $400.00, gross profit $600.00. Gross margin is $600.00 ÷ $1,000.00 × 100% = 60.00%. Markup is $600.00 ÷ $400.00 × 100% = 150.00%. This shows that markup can be higher than 100%, while gross margin usually does not exceed 100% if cost is positive.
The gross margin calculator shows gross profit and gross margin. It does not calculate markup, but once you know gross profit and cost of goods sold, you can calculate it yourself. The distinction matters in conversations with suppliers, when setting prices, and when comparing products. When someone talks about a high margin, it is worth asking whether they mean markup.
How to Interpret Gross Profit and Gross Margin
Gross profit is the amount left from revenue after subtracting cost of goods sold (COGS). It is shown in dollars. Gross margin is that same profit expressed as a percentage of revenue. This makes it easier to compare products, sales channels, and periods, even when prices differ.
A high gross margin means that after subtracting COGS, a relatively large amount remains to cover other costs and generate profit. A low gross margin is not always bad: with high sales volume, even a small percentage can produce meaningful gross profit. Conversely, a high margin with few transactions may not be enough to sustain a business.
When interpreting the results, pay attention to a few things:
- Gross profit shows the effect of a single transaction or a selected price and cost.
- Gross margin helps you quickly assess what share of revenue remains after COGS.
- Compare margins within similar products and channels, because different industries have different typical levels.
- Do not treat gross margin as net profit. It is only the stage before taxes, fees, marketing, and operating costs, if those are not included in COGS.
For the default data: gross profit of $600.00 and gross margin of 60.00% mean that from $1,000.00 in revenue, $600.00 remains after cost of goods sold. That is the amount you can analyze further in the context of your remaining costs.
How to Account for COGS in E-commerce
COGS, or cost of goods sold, is the amount you subtract from revenue. In e-commerce, it can include different items depending on your sales model. Enter the amount that matches your situation and the goal of your analysis.
COGS typically includes:
- the cost of buying goods from a supplier or wholesaler,
- materials and components needed to make the product,
- labor directly tied to the product,
- unit packaging, if it is part of the product cost,
- other costs you want to assign to a single sale.
When selling on platforms such as Amazon, Etsy, eBay, Shopify, Vinted, or TikTok, there are additional fees: commissions, shipping costs, returns, ads, and subscriptions. The gross margin calculator does not add them automatically. If you want to see margin after these charges, you can include them in cost of goods sold or analyze them separately. Remember to check the platform's current pricing, because rates can change.
For products with variable costs, such as handmade items, the COGS amount may differ from batch to batch. In that case, calculate margin for several variants: the lowest, typical, and highest cost. This shows you how gross profit and gross margin change as cost rises.
Limitations: What the Calculator Does Not Include (Taxes, Fees, Operating Costs)
The gross margin calculator is used to calculate gross profit and gross margin from two amounts: revenue and cost of goods sold (COGS). It is intentionally simple, so its result is only a guide if your situation includes more costs.
The calculator does not include:
- taxes, including VAT, income tax, corporate tax, and other charges,
- sales platform and payment processor fees,
- delivery, shipping, packaging, and logistics costs, if they are not in COGS,
- returns, complaints, chargebacks, and inventory losses,
- marketing, advertising, campaigns, and promotions,
- operating costs such as rent, accounting, software, social security contributions, or administrative salaries,
- current exchange rates, supplier price lists, and individual commercial terms.
If any of these costs are not included in COGS, they do not affect the result. That is why the gross margin from the calculator is not the same as net margin or net profit. When making pricing decisions, compare the result with a full cost calculation. When analyzing sales platforms, check current pricing and terms, because rates and conditions can change.
Also remember the case where revenue is 0 or less. The calculator uses a margin of 0, although in theory margin with zero revenue is undefined. Treat that result as a signal that you need positive revenue to calculate margin.
Frequently Asked Questions
How do I calculate gross margin?
Subtract cost of goods sold from revenue, then divide gross profit by revenue and multiply by 100%. For $1,000.00 in revenue and $400.00 in COGS, the margin is 60.00%.
What is COGS in this calculator?
COGS is cost of goods sold, which you enter together with revenue. The calculator treats it as an amount subtracted from revenue, without imposing what exactly you include in cost.
Does the gross margin calculator include taxes and fees?
No, not unless you include them in cost of goods sold. The calculator does not automatically add taxes, platform fees, shipping, returns, or marketing.
Does the calculator show markup?
No, it shows gross profit and gross margin. You can calculate markup separately by dividing gross profit by cost of goods sold and multiplying by 100%.
What if revenue is 0?
The calculator uses a margin of 0, although in theory margin with zero revenue is undefined. To assess margin, enter positive revenue.
What is a good gross margin?
It depends on the industry, sales model, and costs. The calculator does not judge whether the result is high; compare your own products and check current market conditions.
See also — related tools
The calculator runs locally in your browser; results are for guidance only and do not replace proper accounting of costs or current platform pricing.