This page is the math. For the plain-words explanation of why markup and margin differ, and the mistakes that cost contractors the most, read markup vs margin for contractors. The short version: markup is profit as a share of your cost, margin is profit as a share of the price, and the same percent gives two different prices.
How the calculator works
Markup or margin. Enter your cost, pick what you know (margin, markup or price) and enter it. You get the price, the profit in dollars, the margin and the markup.
Profit on one job. Enter what the customer paid, the materials, labor at cost and any other job costs (rentals, dump fees, subs), plus overhead as a percent of the price. You get:
- Gross profit: the price less the job's own costs.
- Net profit: gross profit less the job's share of overhead.
- Both as a margin, a share of the price.
Nothing you type leaves your browser. Copy results puts both answers on your clipboard as plain text, ready for a note or a quote.
The formulas
- Margin =
(price - cost) / price - Markup =
(price - cost) / cost - Price from a margin =
cost / (1 - margin) - Price from a markup =
cost x (1 + markup) - Markup to margin =
markup / (1 + markup) - Margin to markup =
margin / (1 - margin) - Gross profit =
price - materials - labor - other job costs - Net profit =
gross profit - (price x overhead %)
Prices from a margin round up to the cent, so the margin is never a hair under what you asked for. Percents show up to two decimal places.
| If you want this margin | You need this markup |
|---|---|
| 10% | 11.11% |
| 20% | 25% |
| 25% | 33.33% |
| 30% | 42.86% |
| 40% | 66.67% |
| 50% | 100% |
A margin can never reach 100%, because that would mean the job cost nothing. A markup has no ceiling.
Worked example
Every example below is what the calculator shows for those inputs, to the cent. The figures are made up for illustration.
Example 1: a price from a margin (the default)
Your cost on a job is $1,000 and you want a 30% margin. Leave I know my on Margin and enter 30.
| Price | Profit | Margin | Markup |
|---|---|---|---|
| $1,428.58 | $428.58 | 30% | 42.86% |
Price = $1,000 / (1 - 0.30) = $1,428.5714..., rounded up to $1,428.58
Example 2: what a markup really earns
Same $1,000 cost. Pick Markup and enter 40.
| Price | Profit | Margin | Markup |
|---|---|---|---|
| $1,400.00 | $400.00 | 28.57% | 40% |
A 40% markup is only a 28.57% margin. Marked up 30% instead, the price is $1,300 and the margin 23.08%. On $200,000 of work a year, the gap between a 30% margin and a 30% markup is about $14,000 of profit you thought you had.
Example 3: check a price you already quoted
You quoted $1,500 on a $1,000 cost. Pick Price and enter 1,500.
| Price | Profit | Margin | Markup |
|---|---|---|---|
| $1,500.00 | $500.00 | 33.33% | 50% |
Example 4: profit on one job (the default)
The customer paid $5,000. Materials were $900, labor at cost $1,600 and a dumpster $150, so the job's own costs were $2,650. Overhead runs 15% of the price.
| Gross profit | Gross margin | Overhead | Net profit | Net margin |
|---|---|---|---|---|
| $2,350.00 | 47% | $750.00 | $1,600.00 | 32% |
Example 5: a job that looked fine and wasn't
The customer paid $4,200. Materials $850, labor at cost $1,800, other costs $120, overhead 12% of the price.
| Gross profit | Gross margin | Overhead | Net profit | Net margin |
|---|---|---|---|---|
| $1,430.00 | 34.05% | $504.00 | $926.00 | 22.05% |
A 34% gross margin sounds healthy. After overhead, the job kept 22 cents of each dollar. Gross margin tells you whether the job was priced and run well. Net margin tells you whether it paid the business. To see how many jobs like this cover your fixed costs, use the break-even calculator.
What goes into "cost"
The calculator is only as right as the cost you give it. The costs people forget most are the ones that ride on top of wages and on top of each payment.
| Cost | Rate | Where it goes here | Source |
|---|---|---|---|
| Social Security, employer half | 6.2% of wages, up to $184,500 per employee in 2026 | Labor at cost | IRS Topic 751 |
| Medicare, employer half | 1.45% of all wages | Labor at cost | IRS Topic 751 |
| Federal unemployment (FUTA) | 6.0% of the first $7,000 per employee, or 0.6% after the full state credit | Labor at cost | IRS Topic 759 |
| State unemployment, workers' comp | Varies by state and trade | Labor at cost | Your state and your insurer |
| Card processing | Stripe's standard rate is 2.9% + 30 cents per domestic card payment, and 0.8% (capped at $5) for an ACH bank payment | Other job costs, unless the customer pays the fee | Stripe pricing |
| Truck, insurance, office, software | Your own books | Overhead % | Your last 12 months |
Example. A crew member earns $22 an hour for a 40-hour week: $880 of wages. Before state unemployment and workers' comp, the payroll taxes add $72.60:
Social Security = $880 x 6.2% = $54.56
Medicare = $880 x 1.45% = $12.76
FUTA (net) = $880 x 0.6% = $5.28
Labor at cost = $880 + $72.60 = $952.60
That is the number for Labor at cost, not the $880. The hourly rate guide works out the whole burden, including overhead per hour, and the job costing guide shows how to track it job by job. If you take cards, the card fee calculator shows what a payment costs you, and can contractors charge a credit card fee covers passing it on.
Using the result on a quote
Work out the price here or in one of the job calculators, then put the price on the quote. Chalk quotes show your customer prices, not your costs or margins.
- The price book does this math for every item. Give an item Your cost per unit, and the price book's Cost and Margin columns fill in, with margins under 40% shown in red. See Price book and measurements.
- If a customer asks for a discount, run it here first. A Timed offer on a Chalk quote can put a dollar or percent discount on with a countdown, starting when you send it, so a discount is tied to booking soon rather than given away.
- Optional upgrades protect margin better than discounts. Add them with + Optional extra and let the customer tick what they want. See good, better, best pricing.
The hourly rate calculator works out the overhead and labor numbers that go into your costs, and the job calculators, such as the deck and fence stain calculator, do this math for a whole job.
FAQ
How do I convert markup to margin?
Divide the markup by one plus the markup. A 40% markup is 0.40 / 1.40, which is a 28.57% margin. Pick Markup in the calculator and it shows the margin for you.
What markup do I need for a 30% margin?
42.86%. Divide the margin by one minus the margin, 0.30 / 0.70. On a $1,000 cost that is a price of $1,428.58.
Why does the calculator show a cent more than my own math?
Prices from a margin round up to the next cent, so the margin is never under what you asked for. $1,000 at a 30% margin is $1,428.5714..., which shows as $1,428.58.
Should overhead go into my cost?
It depends on which margin you want. Put only the job's own costs in to get a gross margin. Add the job's share of overhead to get a net margin. In the Profit on one job part, overhead has its own box, as a percent of the price.
Can a margin be 100%?
No. A 100% margin would mean the job cost nothing, so the calculator asks for a margin under 100%. A markup has no ceiling.
Sources
- Internal Revenue Service, Publication 334, Tax Guide for Small Business: gross profit as receipts less the cost of what was sold.
- Internal Revenue Service, Topic 751, Social Security and Medicare withholding rates and Topic 759, Form 940, FUTA tax. Checked November 1, 2026.
- Stripe, Pricing: standard US rates for domestic cards and ACH Direct Debit. Checked November 1, 2026. Your processor's rate may differ.
- The rest is arithmetic. The example figures are made up for illustration, and the examples are checked against the calculator's own code in the site's tests.