Gross profit
$40.00
Selling price − cost
$100 − $60 = $40
Free business tool
Calculate gross margin, work backward from a target margin, or see what one order leaves after a discount, card fees, shipping, and advertising.
Gross margin
40.00%
On a $100.00 sale with $60.00 in cost.
| Per order | Before | After |
|---|---|---|
| Selling price | — | — |
| Card fee | — | — |
| Money left | — | — |
| Margin | — | — |
—
Example only. Select Calculate margin to use the current inputs.
Rent, payroll, marketing, financing costs, and other expenses still affect your net profit.
Keep the inputs comparable: this tool uses one item, USD, and amounts with up to two decimals. Enter both cost and selling price on the same basis. Use a selling price after discounts and before sales tax collected; include the costs allocated to that item under your accounting policy. Amount inputs are limited to $999,999,999.99.
Select After a discount, then Load example. The original price is $100, product cost is $40, the card fee is 2.9% + $0.30, shipping is $8, and advertising is $6 per order.
$42.80 per order
$100.00 sale − $40.00 cost − $3.20 card fee − $8.00 shipping − $6.00 advertising. Margin: 42.8%.
$13.67 per order
$70.00 sale − $40.00 cost − $2.33 card fee − $8.00 shipping − $6.00 advertising. Margin: 19.5%.
The order leaves $29.13 less, a 68.1% decrease. Discounted price = original price × (1 − discount ÷ 100). Card fee = discounted price × fee rate ÷ 100 + fixed fee. Margin after the entered costs = money left ÷ discounted price × 100.
Prices and card fees round to cents before costs are subtracted. This mode displays percentages to one decimal place. A zero selling price has no defined margin. When the original profit is zero or negative, compare the dollar change; the percentage decrease is not defined.
The same profit. A different denominator.
Imagine buying an item for $60 and selling it for $100. The $40 gross profit is 40% of your selling price, but 66.67% of your cost. That is why margin and markup cannot be used interchangeably.
Gross profit
Selling price − cost
$100 − $60 = $40
Gross margin
Gross profit ÷ price × 100
$40 ÷ $100 × 100 = 40%
Markup on cost
Gross profit ÷ cost × 100
$40 ÷ $60 × 100 ≈ 66.67%
For comparison, a 40% markup on $60 produces an $84 selling price and a 28.57% margin. To reach a 40% margin, divide $60 by 0.60 instead: the selling price is $100.
Price for a target
Choose Selling price in the calculator. Enter your cost and the percentage of revenue you want left as gross profit. The formula is cost ÷ (1 − target margin ÷ 100).
For a $10 item and a 30% target, the exact price is approximately $14.285714. The tool rounds up to $14.29, producing a displayed margin of 30.02%. Rounding down to $14.28 would miss the target.
From an estimate to your books
The calculator checks one pricing assumption. Bokeping keeps the purchase, inventory, sale, and accounting records you need to review what happened. It does not automatically copy these inputs into your account.
In Settings → Products & Services, review the inventory valuation method and cost scope. Bokeping supports FIFO and moving weighted average. A displayed average cost does not mean that every FIFO sale uses that amount.
Understand inventory costsReports → Inventory Valuation shows the stock carried at a cutoff date. Cost of goods sold is the cost recognized for stock sold. Check item movements and source records when either amount looks wrong; changing a selling price does not correct inventory cost.
Review inventory valuationOpen Reports → Profit and Loss. Select the company, dates, and Cash or Accrual basis. Read income, COGS, operating expenses, and net income together. Follow a linked account amount to the General Ledger when you need the supporting detail.
Read financial statementsPlan scope: inventory tracking and cost of goods sold are included in Standard and Pro. Multiple stores, warehouses, and stock transfers require Pro. Compare the plans.
FAQs