Using the Gross Margin Calculator
This page subtracts the cost of goods from revenue, then turns that gross profit into a percent of revenue. Gross profit is revenue minus the cost of goods. Gross margin percent is that profit divided by revenue, times 100. The sample is revenue 500 and a cost of goods of 300. Five hundred minus 300 is 200. Two hundred divided by 500 is 0.4, and 0.4 times 100 is 40. The headline is 40, labeled Gross margin percent. A line labeled Gross profit shows 200. The result sentence reads Revenue of 500 and a cost of goods of 300 give gross profit of 200 and a margin of 40 percent.
The page uses the numbers you type. It does not read a ledger, a receipt, or an inventory count. If revenue is 500, type 500. If the cost of goods is 300, type 300. Revenue must be greater than 0 and at most 100000000000, because the margin divides by revenue. The cost of goods must be at least 0 and at most 100000000000, so a typed 0 is allowed for the cost and is rejected for revenue. A cost of 0 with revenue 500 reports gross profit of 500 and a margin of 100 percent.
A blank field, or a value that is not a plain number, is rejected with a required message that names the field. A leading minus, a comma, and a currency sign fall under that required message. The page does not strip a sign and then subtract. A cost of goods larger than revenue is still a plain positive number, and the page will subtract it. Revenue 500 and a cost of goods of 600 give gross profit of -100 and a margin of -20 percent. That negative pair is the arithmetic of those two fields, not a second mode.
The same two numbers return the same profit and the same margin on every run. There is no overhead line and no tax line after the subtraction. If a later percent uses a different cost, that percent came from a different form. The figures to check here are gross profit 200 and a margin of 40 percent for revenue 500 and a cost of goods of 300.
What the Profit and the Margin Show
The headline is the gross margin percent. For the sample it is 40. The gross profit line is 200, which is 500 minus 300. The margin is that 200 divided by 500, times 100. Both lines are the audit. If a handwritten percent says 40 and the profit line says something other than 200, the revenue or the cost of goods is not the sample. The result sentence keeps both inputs beside both results: Revenue of 500 and a cost of goods of 300 give gross profit of 200 and a margin of 40 percent.
The page does not add operating costs, tax, or a discount after the subtraction. The 200 is revenue minus the cost of goods you typed, and the 40 is that profit divided by revenue, times 100. A cost of goods of 0 leaves the profit equal to the revenue and the margin at 100 percent. A cost equal to revenue leaves the profit at 0 and the margin at 0 percent. Revenue of 0 is not a margin of 0. Revenue must be greater than 0, because the percent divides by it.
How 500 and 300 Become 40 Percent
Subtract the cost of goods from the revenue first. Five hundred minus 300 is 200, and that difference is the gross profit line. Then divide the gross profit by the revenue. Two hundred divided by 500 is 0.4. Then multiply by 100. The margin is 40, and that percent is the headline. Changing the cost changes the profit and therefore the margin. Changing the revenue changes both the subtraction and the division. The sentence repeats revenue, cost of goods, gross profit, and margin so a reader can see that 40 is a percent of 500 and not a second dollar amount.
Profit from a different pair of revenue and cost is a different page. The Profit Margin Calculator finds profit and profit margin from revenue and cost. Revenue 200 and cost 150 is profit 50 and a margin of 25 percent. The margin there is profit divided by revenue. Use it when the inputs match that form and that sample. Use this page when the cost is a cost of goods and the sample you are checking is revenue 500, cost of goods 300, gross profit 200, and a margin of 40 percent.
A Cost of Goods Above, At, or Below Revenue
The cost field starts at 300 in the sample and accepts any plain number from 0 through 100000000000. A cost of 0 with revenue 500 shows gross profit of 500 and a margin of 100 percent. A cost of 500 with revenue 500 shows gross profit of 0 and a margin of 0 percent. A cost of 600 with revenue 500 shows gross profit of -100 and a margin of -20 percent, because 500 minus 600 is -100 and -100 divided by 500, times 100, is -20. The page does not refuse a cost above revenue. It reports the negative profit and the negative margin.
You cannot type the minus yourself. A leading minus is rejected with the required message, because the field wants a plain number. The negative profit appears only when a positive cost of goods is larger than a positive revenue. Revenue itself must stay greater than 0. The sample path is the one that stays positive: 500 and 300, profit 200, margin 40 percent.
Revenue 500 and a Cost of Goods of 300
Enter 500 and 300. The gross profit line is 200. The headline is 40. The sentence names both inputs and both results. Enter a cost of 0 and confirm the profit is 500 and the margin is 100 percent. Enter a cost of 500 and confirm the profit is 0 and the margin is 0 percent. Enter a cost of 600 and confirm the profit is -100 and the margin is -20 percent. Enter 0 as revenue and confirm Revenue must be greater than 0 and at most 100000000000. Clear the cost and confirm Cost of goods is required. Enter a leading minus and confirm the required message rather than a negative cost typed by hand.
A gain compared with a cost is a different ratio. The ROI Calculator divides gain minus cost by the cost. A gain of 150 and a cost of 100 is 0.5, or 50 percent. The page does not read an account. Use it when the inputs are a gain and a cost and the divisor is the cost. Use this page when the divisor is revenue and the subtraction is revenue minus the cost of goods, as in the margin of 40 percent.
Which Field Allows Zero
Revenue must be greater than 0 and at most 100000000000. Cost of goods must be at least 0 and at most 100000000000. The sample 500 and 300 is accepted, the gross profit is 200, and the margin is 40 percent. A typed 0 for revenue is rejected with a message that says greater than 0 and repeats the ceiling. A typed 0 for the cost of goods is accepted, and the margin is then 100 percent of that revenue. A value above the ceiling on either field is rejected with that field's range message. An empty field is rejected with the required message for that label.
A value that is not a plain number uses the required message as well. That includes a leading minus, a comma, and a currency sign. The page does not strip a sign and then subtract. It also does not add a further cost after the gross profit. The margin uses only the gross profit and the revenue. For the sample that is 200 divided by 500, times 100, which is 40. If the cost of goods is the larger number, the profit line carries the minus and the margin line carries the matching negative percent.
Mistakes With the Divisor and the Minus
The usual miss is to divide 200 by the cost of goods instead of by the revenue. The margin divides by revenue. Two hundred divided by 500, times 100, is 40. Two hundred divided by 300 is a different ratio and is not the headline. Another miss is to treat a cost of 0 as a rejected field. The cost may be 0, and the margin is then 100 percent. A third miss is to type a leading minus on the cost and expect a negative profit. The leading minus is rejected. The negative profit shows up when the cost you typed is a positive number larger than revenue, such as 600 against 500. A fourth miss is to call 40 a dollar amount. The headline is a percent. The dollars are the gross profit, 200. A fifth miss is to add rent or wages into the 300 and still call the result this page's gross margin. The page subtracts only the cost of goods you typed.
Units to break even are a different division. The Break Even Calculator divides fixed costs by price minus variable cost. Fixed costs of 1000, a price of 25, and a variable cost of 15 are 100 units. The page does not read a ledger. Use it when the inputs are those three and the result is a unit count. Use this page when the inputs are revenue and the cost of goods and the result is a gross profit and a percent.
Keeping Profit Beside the Percent
Write the revenue, the cost of goods, the gross profit, and the margin in one note. For the check, the note is revenue 500, cost of goods 300, gross profit 200, margin 40 percent. Subtract 300 from 500 and confirm 200. Divide 200 by 500 and multiply by 100 and confirm 40. If the headline is 40 and the profit line is not 200, the fields are not the sample. If the profit line is 200 and the headline is not 40, the division did not use this revenue. The result sentence is the same check in one line.
Running 500 and 300 Again
Enter 500 and 300 and confirm the gross profit is 200 and the margin is 40 percent. Confirm the sentence names both inputs and both results. Enter a cost of 0 and confirm profit 500 and margin 100 percent. Enter a cost of 500 and confirm profit 0 and margin 0 percent. Enter a cost of 600 and confirm profit -100 and margin -20 percent. Enter 0 revenue and confirm the revenue message. Clear the cost and confirm Cost of goods is required. Run 500 and 300 a second time and confirm 200 and 40 match the first run. The page does not add a further cost on either run.
A percent taken off a price is a different change. The Discount Calculator multiplies a price by a percent and divides by 100. A price of 80 at 25 percent is a discount of 20 and a sale price of 60. The page does not look up a store. Use it when you already have a price and a discount percent. Use this page when you are still subtracting a cost of goods from revenue and dividing that profit by the revenue.
Where the 40 Percent Belongs
The margin belongs next to the gross profit and the two factors that produced them. This page stops at that arithmetic. Revenue 500 and a cost of goods of 300 give gross profit of 200 and a margin of 40 percent. Margin is gross profit divided by revenue, times 100. Revenue must be greater than 0. The cost of goods may be 0, and it may be larger than revenue. The page does not read a ledger, does not add operating costs, and does not look up a price. If a statement later shows a different percent, the difference is a figure that was not in these two fields.
Checking the Subtraction Before the Percent
Start with 500 and 300. The gross profit should be 200 and the margin should be 40. Subtract first, then divide by revenue, then multiply by 100. If you divide 200 by 300 you will see a ratio that is not the headline. Then try a cost of 0 and confirm the margin is 100 percent. Then try a cost of 600 and confirm the profit is -100 and the margin is -20 percent. Then try 0 revenue and confirm it is rejected. A blank field should be rejected with the required message for that field. If the profit line is 200 and the headline is 40, the sample ran.
A share trade with a buy price and a sell price is a different profit. The Stock Profit Calculator subtracts the buy price from the sell price, multiplies by the shares, and subtracts the commissions. Buying at 10 and selling at 15, for 100 shares and no commission, is a profit of 500. Each commission can be a flat fee or a percentage. The page does not look up a quote. Use it when the inputs are prices, shares, and commissions. Use this page when the inputs are revenue and the cost of goods, and the sample margin is 40 percent.