Gross Profit Calculator
Calculate gross profit dollars and gross margin percentage after direct Cost of Goods Sold (COGS).
Determine your core product unit economic health before corporate overhead and administrative payroll. Input total revenue and direct materials/labor (COGS) to calculate total gross profit dollars and gross margin percentage.
How this calculator works
Gross Profit ($) = Total Revenue - Cost of Goods Sold (COGS). Gross Margin (%) = (Gross Profit / Total Revenue) * 100.
Key benefits
- Isolates direct manufacturing, fulfillment, and wholesale production costs
- Provides gross margin percentage to evaluate pricing power and supplier contracts
- Calculates incremental gross profit generated from product line expansions
Assumptions & exclusions
- Gross profit excludes operating expenses, interest and taxes by design.
- COGS depends on your inventory accounting method (FIFO, LIFO, average cost) in practice.
- Returns, allowances and discounts should be netted in revenue as entered.
Frequently asked questions
What is included in Cost of Goods Sold (COGS)?
COGS includes raw materials, direct labor to create the product, manufacturing supplies, and freight-in shipping. It excludes indirect overhead like office rent or advertising.
What is a good gross margin for a small business?
It depends entirely on the model. Product resellers often work between 25 and 50 percent, while many services run higher because their direct costs are mostly labor. Judge your margin against your own trend and similar businesses, not a universal figure.
How do I turn a target gross margin into a selling price?
Divide the unit cost by one minus the target margin as a decimal. For a 40 percent margin on a $30 cost, the price is $30 divided by 0.6, which is $50. Pricing from margin, not markup, avoids systematic underpricing.
Why did my gross margin fall even though sales grew?
Common causes are discounting to win volume, a supplier price increase absorbed rather than passed on, or a sales mix shifting toward lower-margin products. Revenue can rise while each dollar of it keeps less, which is what the margin reveals.
Does gross profit include shipping and packaging?
Freight-in and packaging needed to deliver the product are direct costs and belong in cost of goods sold. Outbound shipping charged to customers is often treated with revenue or as a delivery cost — the key is applying one treatment consistently.
How often should I calculate gross profit?
Every accounting period, and after any price or supplier change. Gross margin moves before revenue or bank balances show a problem, so a monthly check gives the earliest warning that pricing or sourcing needs attention.
Formula-Based Calculator · By QalcTools Editorial Team. Formulas tested against independent reference values · Content reviewed November 2026 by the QalcTools Editorial Team.
Methodology note: Financial Accounting Standards Board (FASB) Revenue Recognition & COGS standards.
Related calculators
Category: Business & Commercial Calculators
About this calculator
Gross profit is the first and purest test of a product: after paying the direct cost of making or buying what you sold, how much is left? This calculator answers in both forms that matter — the dollars of gross profit and the gross margin, that profit as a percentage of revenue. Those two numbers price your business. The dollars fund everything else the company does, from rent to salaries to growth, and the percentage reveals your pricing power: whether customers pay comfortably more than your direct costs, or whether every sale is a near thing. Enter one period’s revenue and its direct costs and see the verdict immediately.
How it works
Enter total revenue for a period and the cost of goods sold for the same period — raw materials, direct labor, packaging and freight-in for physical goods, or the direct delivery cost of a service. The tool subtracts to give gross profit, then divides gross profit by revenue to give the gross margin percentage. Because the shared results panel also carries the calculation onward through operating expenses and taxes, you can add those figures to see how much of the gross profit survives to the bottom line — but the headline of this page is deliberately the first subtraction, the one that judges the product itself before any overhead is blamed or credited.
The formula, explained
Gross profit = Revenue − Cost of goods sold; Gross margin = Gross profit ÷ Revenue × 100
- Revenue — Total sales for the period, after refunds and discounts as recorded ($)
- Cost of goods sold — Direct costs of what was sold: materials, direct labor, packaging and freight-in ($)
- Gross profit — What remains of revenue after direct costs, before any overhead, interest or tax ($)
- Gross margin — Gross profit as a percentage of revenue — the share of each sales dollar surviving direct costs (%)
The engine floors revenue and cost of goods sold at zero, subtracts to get gross profit, and divides by revenue to express the margin, reporting the percentage to one decimal place and the dollar figure rounded whole; zero revenue yields a zero margin rather than an error. On this page the same engine continues the waterfall when you supply operating expenses and the combined interest-and-taxes figure, producing operating and net results below the gross headline, but the gross figures depend only on the two inputs above. No inventory valuation method is applied inside the tool — the cost of goods sold is taken exactly as you enter it, so how you compute that figure from your own records determines the result.
Inputs and variables
| Variable | Meaning | Example |
|---|---|---|
| Total Revenue | Sales for the period, recorded consistently — net of returns, allowances and discounts. Gross profit is measured against the revenue the business actually kept from customers. | $85,000 |
| Cost of Goods Sold | The direct cost of the units or services behind that revenue: materials, direct labor and freight-in. It excludes rent, marketing and administration, which are overhead, not product cost. | $51,000 |
| Operating Expenses (for the fuller panel) | Overhead for the same period, requested by the shared results panel. It does not affect gross profit, but shows how much of it the running of the business consumes. | $20,000 |
| Interest and Taxes (for the fuller panel) | Financing and tax costs for the period, combined as one entry. Like overhead, it sits below gross profit in the waterfall and leaves the gross figures untouched. | $3,500 |
Worked example
A small online retailer sells $85,000 of goods in a quarter. The products cost $51,000 including freight-in. Operating expenses for the quarter are $20,000 and interest and taxes $3,500. The owner wants the gross picture first: what the products themselves earned.
- Revenue (quarter): $85,000
- Cost of goods sold: $51,000
- Operating expenses: $20,000
- Interest and taxes: $3,500
- Gross profit: $85,000 − $51,000 = $34,000 earned by the products themselves this quarter.
- Gross margin: $34,000 ÷ $85,000 = 40.0% — forty cents of every sales dollar survives direct costs.
- For context, the waterfall continues: operating profit is $34,000 − $20,000 = $14,000 (16.5%), and net profit is $14,000 − $3,500 = $10,500 (12.4%).
- So direct costs consumed 60 cents of each dollar, overhead a further 23.5 cents, and interest and taxes about 4.1 cents.
Gross profit of $34,000 and a gross margin of 40.0% on $85,000 of quarterly revenue, with operating profit of $14,000 and net profit of $10,500 below it.
A 40 percent gross margin gives this retailer real room to operate: $34,000 a quarter funds $20,000 of overhead and still leaves a five-figure operating profit. The margin is also the number to defend. If a supplier raises prices by 5 percent and selling prices stay put, cost of goods sold climbs to about $53,550 and the margin falls to roughly 37 percent — over $2,500 a quarter gone without a single sale lost. That sensitivity is why gross margin, checked every period, is the earliest warning a product business gets: it moves before revenue does, and long before the bank balance explains what happened.
Understanding your results
Read gross profit dollars and gross margin percentage as a pair, because each can mislead alone. Rising revenue at a falling margin can produce flat or shrinking gross profit dollars — the business is working harder for the same product earnings, usually because discounts or rising supplier costs are quietly repricing every sale. Conversely, a deliberate price rise may lift the margin while revenue dips, yet gross dollars grow. The healthy pattern for a developing product line is both measures rising together; when they diverge, the percentage tells you the model is changing and the dollars tell you whether the change is paying.
Gross margin is also your pricing compass. It converts directly into the markup language suppliers and retailers speak: a 40 percent margin corresponds to a 66.7 percent markup on cost, and confusing the two is a classic pricing error that underprices goods by a wide band. When you renegotiate supply or set a new price, work from the target margin backward — required price equals cost divided by one minus the target margin — and check the result here. Small margin gains achieved through price or sourcing are worth more than equivalent revenue gains, because they require no extra units sold.
Assumptions and limitations
The result stands or falls with your cost of goods sold figure, and that figure is an accounting construction, not a raw fact. Inventory methods, the treatment of freight, spoilage and staff time shared between production and other duties can each move the number materially, and this tool accepts your figure without testing how it was built. Gross profit also deliberately ignores overhead, so a fine gross margin can coexist with a loss-making business when rent and payroll are heavy — the fuller panel exists to show that next layer. Finally, one period is a snapshot: product mix changes across periods shift the margin even when no price or cost changes at all.
Common mistakes to avoid
- Loading overhead into cost of goods sold. Rent, marketing and bookkeeping are operating expenses. Placing them in direct costs understates the gross margin and misdiagnoses a healthy product as a weak one.
- Confusing margin with markup. Margin divides profit by the selling price; markup divides it by cost. Aiming for a 40 percent margin but applying a 40 percent markup prices goods far below the intention.
- Using revenue before refunds and discounts. Gross sales inflate both revenue and the apparent margin. Enter the net revenue the business actually retained from customers in the period.
- Mismatching the period of costs and sales. Goods bought this quarter but sold next quarter belong to next quarter’s cost of goods sold. Mixing purchase timing with sales timing whipsaws the margin between periods.
- Celebrating revenue growth while margin erodes. Discount-driven growth can add sales and subtract gross profit at once. Check the gross dollars after every promotion, not just the revenue headline.