Gross Margin Calculator
Strong sales do not tell you how much remains after the goods themselves are paid for. This gross margin calculator compares sales revenue with cost of goods sold to show gross profit, gross margin, and the equivalent markup on cost. Use figures for the same product, order, or accounting period so the comparison stays meaningful. You can also enter costs above revenue to see the size of a gross loss. The result describes the relationship between sales and direct product costs. It does not subtract operating expenses or estimate your final business profit after taxes.
How to use the gross margin calculator
- Enter sales revenue in dollars for the period or sale you want to review.
- Enter the matching cost of goods sold. Do not mix monthly costs with annual revenue.
- Review gross profit, gross margin, and equivalent markup. Markup is not defined when cost is zero.
Formula and calculation
Gross profit = revenue minus cost of goods sold. Gross margin = gross profit divided by revenue multiplied by 100. Equivalent markup = gross profit divided by cost of goods sold multiplied by 100. Positive revenue is required because the gross margin calculation divides by revenue.
Worked example
Revenue of $10,000 and cost of goods sold of $6,000 leave $4,000 in gross profit. Gross margin is 40%, while equivalent markup is about 66.67%. If revenue is $100 and cost is $120, gross profit is negative $20 and gross margin is negative 20%.
Assumptions and limits
Use revenue and cost of goods sold for the same period. Revenue must be positive. Losses show negative margins. Markup is not defined when cost is zero. Gross profit excludes operating expenses, interest, and taxes.
Use this result to inspect product economics rather than to label a business healthy or unhealthy. Different business models classify direct costs differently. Check that your cost figure is consistent across the periods you compare. A percentage can improve even while gross profit dollars decline, so review both outputs.
Amounts are in US dollars. Displayed dollar results round to cents and percentages to at most four decimal places. Calculations retain precision until display.
