Gross Margin Calculator - Profit and Margin Rate

Calculate gross profit, gross margin percentage, adjusted sales, and cost-of-goods ratio.

Enter net sales and COGS, or provide gross sales, returns, and discounts for adjusted revenue.

Gross Margin Calculator - Profit and Margin Rate
Calculate gross profit, gross margin percentage, adjusted sales, and cost-of-goods ratio.

Adjusted sales = total sales − returns − discounts when total sales is supplied; otherwise net sales is used. Gross profit = adjusted sales − COGS. Gross margin = gross profit ÷ adjusted sales × 100.

About the Gross Margin Calculator

Gross margin measures the portion of net sales remaining after cost of goods sold. The gross margin calculator first determines the sales denominator. When Total Sales is greater than zero, it subtracts returns and discounts to produce adjusted net sales; otherwise it uses the directly entered Net Sales value. Gross profit equals adjusted sales minus COGS, and gross margin percentage divides gross profit by adjusted sales. The complementary COGS percentage shows how much of each sales dollar is consumed by direct product or service cost. Classify inputs consistently. For a retailer, COGS may include inventory purchase cost, inbound freight, and production-related allocations under the accounting policy. For a manufacturer, it can include direct materials, direct labor, and allocated factory overhead. A service business may report cost of revenue rather than physical goods. Selling, general, administrative, interest, and income-tax expenses normally appear below gross profit and should not be inserted selectively into COGS. Misclassification can make comparisons misleading even when the arithmetic is correct. Gross margin differs from markup. Margin divides profit by sales, while markup divides profit by cost. A product costing $60 and selling for $100 has a 40 percent gross margin but a 66.67 percent markup. Gross margin also differs from operating and net profit margins, which include additional expenses. Negative gross profit and margin are possible when COGS exceeds adjusted sales. If returns and discounts exceed total sales, adjusted sales is not positive and the gross margin calculator rejects the scenario. Interpret results over time and against genuinely comparable products, channels, companies, and accounting policies. Changes can reflect price, product mix, supplier terms, freight, labor, waste, inventory write-downs, promotions, returns, or currency movements. A higher margin is not automatically better if it reduces volume, customer retention, or total contribution. Pair the metric with units sold, inventory turnover, operating expenses, and cash flow. Use the gross margin calculator for planning, pricing scenarios, classroom work, and statement checks. For published reporting or tax decisions, reconcile amounts to the general ledger and applicable accounting standards. The result is not a complete profitability analysis or pricing recommendation.

Gross Margin Examples

Compare direct net sales with adjusted gross sales.

InputsResultInterpretation
$100,000 net sales; $60,000 COGSGross margin = 40%Gross profit is $40,000.
$200 sales; $20 returns; $10 discounts; $100 COGSGross margin ≈ 41.18%Adjusted sales are $170 and gross profit is $70.
$90 net sales; $100 COGSGross margin ≈ −11.11%COGS above sales creates a gross loss.

How to Use the Gross Margin Calculator

  1. Choose either direct net sales or gross sales with deductions.
  2. Enter COGS for the same products and period.
  3. Keep classifications consistent with the accounting policy.
  4. Click Calculate and compare margin, profit, and COGS ratio.

Gross Margin FAQ

What is the difference between margin and markup?
Margin divides profit by sales. Markup divides the same profit by cost, so the percentages are not interchangeable.
Can gross margin be negative?
Yes. It is negative when cost of goods sold exceeds adjusted net sales. That signals the product or period lost money before operating expenses.
Should operating expenses be included in COGS?
Generally no. Selling, administrative, interest, and tax costs belong below gross profit unless a production cost is classified in COGS by policy.
Why use net sales?
Returns and discounts reduce earned revenue. Using net sales keeps the margin denominator aligned with what the business actually kept.

Related tools

Burndown Chart Calculator - Agile Sprint Tracker
Burndown chart calculator for agile sprint tracking, remaining work, ideal progress, velocity, variance, sprint forecasts, and delivery risk.
Cash Conversion Cycle Calculator - Working Capital
Cash conversion cycle calculator for DIO, DSO, DPO, and working capital efficiency. Measure how fast operations turn inventory into cash for planning.
Moratorium Calculator - Deferred Loan Interest
Estimate interest accrued during a loan payment moratorium, the deferred balance, and the revised monthly payment. Plan the restart before you defer.
Real GDP Calculator - Inflation-Adjusted GDP
Convert nominal GDP to real GDP with the GDP deflator, then optionally get per-capita output and growth. Strip inflation from GDP.
Bank Reserve Ratio and Money Multiplier Calculator
Calculate a bank reserve ratio, required and excess reserves, and the theoretical money multiplier from deposits and reserve requirement assumptions.
Present Value of Annuity Calculator - Payment Value
Calculate the present value and nominal total of equal future payments using an annual rate, payment frequency, payment amount, and number of years.
Future Salary Calculator - Income Growth Projection
Project future salary, inflation-adjusted income, and career earnings using current pay, annual raises, promotion bonuses, and a selected planning timeline.
COVID-19 Student Loan Repayment Calculator
Estimate COVID-19 student loan repayment after forbearance, including interest pauses, income-driven payments, and 10-year standard amounts.