Profit Margin Calculator
Enter cost and revenue to see gross profit, gross margin %, and markup %. Or flip to selling-price mode and enter a cost plus target margin to get the recommended selling price.
Profit Margin Settings
Calculation Mode
Enter cost and revenue to calculate gross margin and markup.
$
$
%
Results
Enter your cost and revenue (or target margin) on the left to see results.
Gross Margin
0%
of revenue
Gross Profit
$0.00
Gross Margin %
0%
Markup %
0%
| Item | Value |
|---|---|
| Revenue (Selling Price) | — |
| Cost (COGS) | — |
| Gross Profit | — |
| Gross Margin % | — |
| Markup % | — |
Formulas used
Gross Profit = Revenue − Cost
Gross Margin % = (Gross Profit / Revenue) × 100
Markup % = (Gross Profit / Cost) × 100
Recommended Selling Price
$0.00
Gross Profit
$0.00
Target Margin
0%
confirmed
Markup %
0%
| Item | Value |
|---|---|
| Cost (COGS) | — |
| Target Margin | — |
| Selling Price | — |
| Gross Profit | — |
| Markup % | — |
Formula used
Selling Price = Cost / (1 − Target Margin% / 100)
Gross Profit = Selling Price − Cost
Markup % = (Gross Profit / Cost) × 100
Copied!
Summary
Enter cost and revenue to see gross profit, gross margin %, and markup %. Or flip to selling-price mode and enter a cost plus target margin to get the recommended selling price.
How it works
- Choose a mode: "Find Margin" to calculate margin from cost and revenue, or "Find Selling Price" to calculate the price needed to hit a target margin.
- In Find Margin mode, enter your cost and your revenue (selling price) in the input fields.
- In Find Selling Price mode, enter your cost and your desired gross margin percentage.
- Select the currency that matches your figures.
- Click Calculate to see gross profit, gross margin %, markup %, and — in selling-price mode — the recommended selling price.
- Click any copy button to copy a result to the clipboard.
- Click Reset to clear all fields and start over.
Use cases
- A retailer checking whether a product priced at $49.99 with a $28 cost delivers the target 40% margin.
- A freelancer calculating the hourly rate needed to achieve a 60% profit margin on a project.
- A small business comparing markup and margin on different product lines to optimize pricing strategy.
Frequently Asked Questions
Last updated: 2026-06-09 ·
Reviewed by Nham Vu