We use cookies.This website uses essential cookies to operate core features. With your consent, we also use analytics cookies to understand traffic and improve the service. For more details, see our .
If this tool helped you, you can buy us a coffee ☕
Input revenue and costs to instantly calculate gross profit margin, gross profit amount, and cost ratio, helping you determine if your product and business are profitable.
Enter selling price and cost to calculate gross margin and gross profit.
Gross profit margin is the percentage of revenue left after deducting the cost of goods sold (COGS) or direct manufacturing costs. For example, if you buy a shirt for $80 and sell it for $120, you make $40. This $40 is your gross profit, and your gross profit margin is 40 ÷ 120 ≈ 33.3%. You can think of gross margin as "how much money stays in your pocket for every $100 in sales." A higher gross margin means the product is more profitable; if it's too low, you might not even be able to cover rent and utilities. Whether you run an e-commerce store, a street stall, a restaurant, or analyze stock financial reports, gross margin is one of the most critical metrics.
Gross Margin = (Revenue - Cost) ÷ Revenue × 100%
Here, "Revenue" is the selling price (usually excluding tax), and "Cost" is the purchase price or direct production cost (excluding indirect expenses like shipping and labor).
Besides gross margin, we can also derive two related values:
· Gross Profit = Revenue - Cost (how much cash you earned)
· Cost Ratio = Cost ÷ Revenue × 100% (how much cost is incurred for every $100 earned)
If you input the gross margin and revenue, the tool will reverse-calculate the cost; if you input the gross margin and cost, it can calculate the required revenue. The beauty of this formula is that it directly reflects "how much profit is made from every dollar of sales revenue." The value itself is unaffected by scale, making it a fair way to compare profitability across different products and time periods.
Open our gross margin calculator, and you will see three input fields: Revenue ($), Cost ($), and Gross Margin (%). You only need to fill in two of them, and the third will be calculated automatically.
Step 1: Enter your total sales amount in the Revenue ($) box (e.g., 120).
Step 2: Enter your total purchase or manufacturing cost in the Cost ($) box (e.g., 80).
Step 3: Click the "Calculate" button. The Gross Margin (%) on the right will show 33.33%, while also displaying a gross profit of $40 and a cost ratio of 66.67%.
If you want to reverse-calculate the cost based on a target gross margin (e.g., aiming for a 40% margin), enter 120 for Revenue ($) and 40 for Gross Margin (%), and the tool will automatically calculate the cost as $72. Conversely, if you know the cost is $80 and your target margin is 50%, the tool will calculate that you need $160 in revenue.
John opened a snack shop and bought a batch of trending potato chips at a wholesale price of $45 per box. He plans to sell them for $68 per box.
Enter 68 in the Revenue ($) box and 45 in the Cost ($) box, then click calculate.
· Gross Profit = 68 - 45 = $23
· Gross Margin = 23 ÷ 68 ≈ 33.82%
· Cost Ratio = 45 ÷ 68 ≈ 66.18%
John sees the 33.8% gross margin and thinks it's pretty good; he'll still have a net profit after deducting rent and labor. He concludes: every box of these chips sold brings in $23, so selling 100 boxes will yield $2,300 in gross profit.
We can look at the sensitivity of gross margin using two extreme examples:
Low Gross Margin Scenario (9.1%): A supermarket sells eggs. The purchase price is $5/carton, and they sell for $5.50/carton. Revenue is 5.5, cost is 5, gross profit is 0.5, and gross margin is 9.09%. This product has thin margins but high volume. If they sell 1,000 cartons a day, the gross profit is still $500.
High Gross Margin Scenario (90%): Selling digital design templates. The development cost is $10 (amortized), and the selling price is $100. Cost is 10, revenue is 100, gross profit is 90, and gross margin is 90%. However, the sales volume for this type of product is usually lower, relying on a high price to cover development costs.
Through comparison, you'll find that a high or low gross margin isn't absolute; it must be viewed in conjunction with sales volume and turnover. Our calculator helps you quickly determine your gross margin so you can make decisions based on your business scale.
· Gross Margin ≥ 60%: Very high profit margins. Typically seen in brands with high premiums, patented products, software services (SaaS), or asset-light industries. You have an ample budget for marketing or handling price drops.
· Gross Margin 30% ~ 60%: Most physical retail, restaurants, and contract manufacturing businesses fall into this range. Moderate profitability; requires careful control of fixed costs like labor and rent.
· Gross Margin 10% ~ 30%: High volume, low margin models, such as supermarket fresh produce, low-end wholesale, and basic agricultural products. You can still make money if the scale is large enough, but risk tolerance is low.
· Gross Margin < 10%: Close to the cost line. This might just be for loss leaders (driving traffic) or clearing inventory. If it stays below 10% long-term, you need to adjust pricing or optimize your cost structure ASAP.
Note: Gross margin only accounts for direct costs and hasn't deducted expenses like rent, payroll, and utilities. Therefore, a positive gross margin doesn't guarantee net profitability, but a negative gross margin (selling price is lower than purchase price) guarantees a loss.
1. Mixing tax-inclusive and tax-exclusive figures: If your cost is tax-exclusive but your revenue is tax-inclusive, your gross margin will be calculated artificially low. It's recommended to use tax-exclusive figures for both.
2. Ignoring variable costs like shipping/packaging: The "cost" in the gross margin formula refers to direct costs. If shipping, packaging, or commissions make up a large portion, they should be included in the cost; otherwise, your gross margin will look artificially high.
3. Confusing "profit amount" with "profit margin": Some people make $40 and say their gross margin is 40%, but it's actually 33.3%. You must divide by the revenue.
4. Confusing "gross profit" with "net profit": Gross profit doesn't deduct rent and labor; net profit is your true bottom line. Don't assume you're rich just because your gross margin is high.
5. Calculating overall margin with mixed product structures: For example, selling computers at a 20% margin and accessories at 60%. A blended average might hide which product is dragging you down. It's better to calculate margins by individual item or category.
Q: What if the calculated gross margin is negative?
A: This means your selling price is lower than your cost, and you lose money on every sale. Immediately check for pricing errors or spiking costs. This is only acceptable for promotional loss leaders; otherwise, stop immediately.
Q: I run a restaurant. Should vegetable spoilage be included in the cost?
A: Yes. Reasonable waste generated during prep should be amortized into the cost. (For example, if 100 lbs of potatoes cost $300 and 15 lbs are wasted, you only sell 85 lbs. The cost should be calculated as 300 ÷ 85 ≈ $3.53/lb).
Q: What is a normal gross margin?
A: There is no standard answer; it varies by industry. Restaurants are typically 50%-70%, retail 20%-40%, and software services (SaaS) 70%-90%. You should compare your product's gross margin with your industry average.
Q: Can this calculator compute gross margins for multi-level distribution?
A: Yes, but you need to enter the purchase cost and selling price for your specific tier. For multi-level revenue sharing, it's recommended to calculate the gross margin for each level separately.
Q: Can I use monthly revenue/cost to calculate a monthly gross margin?
A: Absolutely. However, note that the cost of unsold inventory for that month cannot be included in the cost; only calculate the cost corresponding to the sold portion. In accounting, this is called the "Cost of Goods Sold" (COGS).
Our calculator provides basic arithmetic results and does not involve complex accounting treatments like taxes, depreciation, or amortization. If you are a formal enterprise preparing financial statements, please follow GAAP (Generally Accepted Accounting Principles) requirements using "Operating Revenue" and "Operating Costs." This tool is not suitable for the following scenarios:
· Situations requiring precise consideration of inventory discrepancies (where COGS doesn't match the books)
· Scenarios involving multiple currencies and exchange rate fluctuations
· Calculating composite metrics like net profit margin or ROI
We recommend using professional financial software for comprehensive analysis.

Return on Investment (ROI) Calculator
Enter your investment amount and dates to quickly calculate ROI and annualized return, helping you make smarter investment decisions.

FVIFA Calculator
Calculate the Future Value Interest Factor of an Annuity (FVIFA) instantly. Enter your interest rate and periods to estimate the future value of regular investments with this free online calculator.

Chinese RMB Amount Converter
Accurately convert between numeric amounts and Chinese uppercase/lowercase financial characters to meet formatting standards for Chinese contracts, invoices, and banking.

CAGR Calculator
Calculate the Compound Annual Growth Rate (CAGR) of your investments. Enter the initial value, final value, and number of years to get an accurate annualized return assessment.

Return on Investment (ROI) Calculator
Enter your investment amount and dates to quickly calculate ROI and annualized return, helping you make smarter investment decisions.

FVIFA Calculator
Calculate the Future Value Interest Factor of an Annuity (FVIFA) instantly. Enter your interest rate and periods to estimate the future value of regular investments with this free online calculator.

Chinese RMB Amount Converter
Accurately convert between numeric amounts and Chinese uppercase/lowercase financial characters to meet formatting standards for Chinese contracts, invoices, and banking.

CAGR Calculator
Calculate the Compound Annual Growth Rate (CAGR) of your investments. Enter the initial value, final value, and number of years to get an accurate annualized return assessment.

Bond YTM Calculator
Enter the face value, market price, coupon rate, and time to maturity to accurately calculate the annualized yield to maturity (YTM) of a bond.