CalculationTime

Gross Margin Calculator

Live math canvas

Your numbers, formula and explanation together

Gross Margin Calculator: 38%. profit $3,800 · cost ratio 62% · revenue for 40% margin: $10,333.33

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).38%profit $3,800 · cost ratio 62% · revenue for 40% margin: $10,333.33

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

38%

profit $3,800 · cost ratio 62% · revenue for 40% margin: $10,333.33

Answer
38%
Live support
profit $3,800 · cost ratio 62% · revenue for 40% margin: $10,333.33

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.

Direct answer

Gross Margin Calculator in one sentence

A gross margin calculator subtracts cost of goods sold from revenue, then divides gross profit by revenue. This page keeps revenue, COGS, discounts, gross profit, cost ratio, markup cross-check and target-margin revenue visible so a quote, product line or classroom worksheet can be printed as an audit record.

How to use this calculator

  1. Enter revenue / sales, cost of goods sold, target gross margin, possible discount.
  2. Check the formula, assumptions and worked example before reusing the number.
  3. Use the result, related calculators and printable record as the next practical step.

Default result preview

Gross margin: 38%

This pre-calculated state lets readers and answer engines verify what the tool returns before the inputs change.

Show the working

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).

The default inputs, formula and result stay together so the number can be checked or quoted without losing context.

Export this result

Copy the default solved state as Markdown or CSV, then print the page for a clean formula and result record.

Print or save report: use the browser print command to save the visible formula, result, assumptions and source context as a clean PDF.

How to prompt AI with this result

Copy this prompt with your final CalculationTime result when you want a second-pass explanation, comparison or next-step checklist.

Use this CalculationTime result as the source: Gross Margin Calculator. Default output: Gross margin = 38%. Formula/method: 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).. Explain the result, state the assumptions, and suggest the next calculation to check.
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.

Price breakdown

Where the selling price goes

Cost and profit split from the worked example, so the margin percentage is never read in isolation.

$10,000worked example
  • Cost$6,200
  • Profit$3,800

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.

Authority & freshness

Who checked this calculator?

Page structure checked: 2026-09-26. Calculator-specific statutory or source-table dates appear in the revision log when the tool depends on time-sensitive rules.

Published by CalculationTime

CalculationTime publishes calculator pages with visible formulas, assumptions, worked examples, related next steps and printable records so the result can be audited instead of treated as a black box.

Machine-readable 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).Formula text is also exposed in the page schema and visible methodology block.

Source basis

3 source references are attached to this page.

Knowledge check

Test your understanding

Use these quick checks to confirm that the result, formula and assumptions make sense before you reuse the number.

Which inputs drive the default result?

The default result starts with Revenue / sales, Cost of goods sold, Target gross margin. The current pre-solved output is gross margin = 38%.

Where is the calculation proof?

The proof is in the formula, worked example and assumptions sections. Together they show the arithmetic, the default state and the limits of the result.

What should you do after reading the answer?

Use the related calculators, printable record or source notes to check the next practical step instead of treating one output as the end of the workflow.

Accuracy feedback

Did this calculator work accurately?

This lightweight check records your answer in this browser only. It does not send personal data and does not claim a live backend review queue.

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.