CalculationTime

Gross Margin Calculator

Calculate gross margin from revenue and cost of goods sold, with gross profit, cost ratio, markup cross-check, scenario rows and a printable margin record.

Live math canvas

Your numbers, formula and explanation together

Gross Margin Calculator: 16,240 gross margin percentage with profit and target-revenue cross-checks. Gross Margin Calculator uses the declared inputs to produce a transparent default result. Revenue / sales: 10,000 currency; Cost of goods sold: 6,200 currency; Target gross margin: 40 %; Possible discount: 0 % optional; primary comparison: 10,000 and 6,200.

Formula applied

The exact method behind this answer

CalculationTime keeps the method visible so the number can be checked instead of blindly trusted.

Net revenue = revenue × (1 − discount percent ÷ 100). Gross profit = net revenue − cost of goods sold. Gross margin % = gross profit ÷ net revenue × 100. Cost ratio % = COGS ÷ net revenue × 100. Required revenue for target margin = COGS ÷ (1 − target margin ÷ 100).
  1. Apply the formulaNet revenue = revenue × (1 − discount percent ÷ 100). Gross profit = net revenue − cost of goods sold. Gross margin % = gross profit ÷ net revenue × 100. Cost ratio % = COGS ÷ net revenue × 100. Required revenue for target margin = COGS ÷ (1 − target margin ÷ 100).16,240 gross margin percentage with profit and target-revenue cross-checksGross Margin Calculator uses the declared inputs to produce a transparent default result. Revenue / sales: 10,000 currency; Cost of goods sold: 6,200 currency; Target gross margin: 40 %; Possible discount: 0 % optional; primary comparison: 10,000 and 6,200.

Your live breakdown

Current inputs in the calculation

These values come from the controls above and update when the calculator changes.

Revenue / sales
10,000 currency
The sales amount or net revenue before subtracting cost of goods sold.
Cost of goods sold
6,200 currency
Direct product, material or service delivery cost you want treated as COGS.
Target gross margin
40 %
Optional target margin for the required-revenue comparison.
Possible discount
0 % optional
Optional discount against revenue before gross margin is calculated.

Resulting answer

16,240 gross margin percentage with profit and target-revenue cross-checks

Gross Margin Calculator uses the declared inputs to produce a transparent default result. Revenue / sales: 10,000 currency; Cost of goods sold: 6,200 currency; Target gross margin: 40 %; Possible discount: 0 % optional; primary comparison: 10,000 and 6,200.

Answer
16,240 gross margin percentage with profit and target-revenue cross-checks
Live support
Gross Margin Calculator uses the declared inputs to produce a transparent default result. Revenue / sales: 10,000 currency; Cost of goods sold: 6,200 currency; Target gross margin: 40 %; Possible discount: 0 % optional; primary comparison: 10,000 and 6,200.

Assumptions used

What this answer assumes

Best for product pricing, retail checks, service-line reviews, quote decisions and classroom business worksheets where revenue and direct cost basis must stay visible.

  • Revenue is treated as net sales before the optional discount entered on this page.
  • COGS means direct cost of goods sold or direct delivery cost only; overhead, tax and financing costs are not added unless included in COGS by the user.
  • Gross margin uses revenue as the denominator. Markup uses cost as the denominator, so the two percentages are not interchangeable.
  • The target-margin calculation is capped below 100% margin to avoid division by zero.
  • This is gross-margin arithmetic for pricing, reporting checks and worksheets. It is not tax, securities, accounting or audit advice.

Master’s Tip

How to use the result well

Master’s Tip: print the revenue basis and COGS definition beside the margin. A margin report is weak if freight, payment fees, discounts, waste or subcontractor costs are sometimes included and sometimes left out.

Printable record

What belongs in the saved calculation

Save the inputs, result, formula, assumptions, page URL and date together so the calculation can be reviewed later.

Revenue / sales
10,000 currency
The sales amount or net revenue before subtracting cost of goods sold.
Cost of goods sold
6,200 currency
Direct product, material or service delivery cost you want treated as COGS.
Target gross margin
40 %
Optional target margin for the required-revenue comparison.
Possible discount
0 % optional
Optional discount against revenue before gross margin is calculated.

Embeddable calculator

Embed this calculator

Copy a clean iframe version with the required CalculationTime attribution link built in.

Formula

Net revenue = revenue × (1 − discount percent ÷ 100). Gross profit = net revenue − cost of goods sold. Gross margin % = gross profit ÷ net revenue × 100. Cost ratio % = COGS ÷ net revenue × 100. Required revenue for target margin = COGS ÷ (1 − target margin ÷ 100).

Worked example

For revenue 10000 and COGS 6200, gross profit = 10000 − 6200 = 3800. Gross margin = 3800 ÷ 10000 × 100 = 38.00%. Cost ratio = 62.00%. To target a 40% gross margin with 6200 COGS, required revenue = 6200 ÷ 0.60 = 10333.33.

Professional note

Master’s Tip: print the revenue basis and COGS definition beside the margin. A margin report is weak if freight, payment fees, discounts, waste or subcontractor costs are sometimes included and sometimes left out.

Regional and unit assumptions

Standard or basis: transparent gross-profit arithmetic using revenue, cost of goods sold and gross profit. Confirm official accounting presentation, tax treatment and reporting policy with the relevant professional or authority.

Assumptions and limitations

Methodology & Accuracy

How this calculator is checked

CalculationTime pages are built around visible arithmetic: the formula, assumptions, worked example and practical limitations are shown so the result can be checked rather than simply trusted.

Formula used

Net revenue = revenue × (1 − discount percent ÷ 100). Gross profit = net revenue − cost of goods sold. Gross margin % = gross profit ÷ net revenue × 100. Cost ratio % = COGS ÷ net revenue × 100. Required revenue for target margin = COGS ÷ (1 − target margin ÷ 100).

Standard or basis

Standard or basis: transparent gross-profit arithmetic using revenue, cost of goods sold and gross profit. Confirm official accounting presentation, tax treatment and reporting policy with the relevant professional or authority.

Where a calculator follows a named legal, trade or industry standard, that standard is cited visibly. Otherwise the page uses transparent general arithmetic and states its limits.

Master's Tip

Master’s Tip: print the revenue basis and COGS definition beside the margin. A margin report is weak if freight, payment fees, discounts, waste or subcontractor costs are sometimes included and sometimes left out.

Questions

How do I calculate gross margin?

Subtract cost of goods sold from revenue to get gross profit, then divide gross profit by revenue and multiply by 100.

What is the gross margin formula?

Gross margin percentage = (revenue − cost of goods sold) ÷ revenue × 100.

Is gross margin the same as markup?

No. Gross margin divides gross profit by revenue. Markup divides gross profit by cost, so markup is usually a larger percentage than margin.

Can gross margin be negative?

Yes. If COGS is higher than net revenue, gross profit is negative and the calculator shows a negative gross margin.

What should I print for a gross margin record?

Print revenue, COGS, discount if used, gross profit, gross margin, cost ratio, target-margin comparison, formula, assumptions, date, page URL and notes about what costs were included.

Calculation note

Gross margin turns revenue and direct cost into a comparable percentage. It is useful only when the revenue basis and cost-of-goods-sold definition are clear, because changing the denominator or cost bucket changes the story.

Gross margin starts with gross profit

Gross profit is revenue minus cost of goods sold. Gross margin then expresses that profit as a share of revenue, which helps compare products, quotes or periods of different sizes.

COGS definition matters

A clean margin record states what went into COGS: product cost, materials, direct labour, freight, packaging or subcontractor cost as relevant. Inconsistent cost buckets make margin comparisons misleading.

Margin and markup use different denominators

A 40% gross margin means gross profit is 40% of revenue. The equivalent markup on cost is higher because markup divides by cost, not by selling price.