What is Margin Calculator?
A margin calculator helps you determine the profit margin on your products or services, which is one of the most important metrics for any business. Profit margin shows what percentage of your revenue remains as profit after accounting for the cost of goods sold. Understanding your margins is essential for pricing decisions, profitability analysis, and business planning.
There are two key margin types: gross margin (revenue minus cost of goods sold) and net margin (revenue minus all expenses). Gross margin tells you how efficiently you produce and sell your products, while net margin reveals your overall profitability. Many business owners confuse margin with markup — while related, they're calculated differently and produce different percentages. This tool computes gross profit, gross margin, and markup from your revenue and cost, so you always know the real numbers behind a price.
When to Use This Calculator
- Setting the price for a new product or service
- Checking whether a supplier quote or wholesale cost still leaves you a healthy margin
- Reviewing the profitability of different product lines before adjusting your catalog
- Planning discounts and promotions without giving away profit
- Comparing your margins against industry benchmarks or last year's performance
- Preparing a price list or renegotiating prices with customers and partners
Steps:
- Enter the revenue — your selling price per unit.
- Enter the cost — what you pay per unit.
- View the gross profit in your currency.
- Read the gross margin percentage and markup percentage.
- Use the results to adjust your pricing or supplier costs.
Formula
Gross Profit = Revenue - Cost
Gross Margin = (Gross Profit / Revenue) × 100
Markup = (Gross Profit / Cost) × 100
Example: cost $45, sell for $75
Gross Profit = $75 - $45 = $30
Margin = ($30 / $75) × 100 = 40%
Markup = ($30 / $45) × 100 = 66.67%
Use Cases
- Setting profitable prices for products and services
- Analyzing the profitability of different product lines
- Comparing business performance across industries
- Planning pricing strategies for new products
- Evaluating wholesale and supplier cost changes
- Modeling the impact of discounts and promotions on profit
Key Benefits
- Instantly see gross profit, margin, and markup from just two numbers
- Price products confidently knowing the exact profit each sale leaves behind
- Spot low-margin items that eat time and money without earning their keep
- Plan discounts and promotions with the real profit impact in view
- Understand the margin-vs-markup difference with concrete examples
- Free, private, and works offline on any device — no sign-up required
Pro Tips
- Remember the conversion: a 30% margin needs a 42.9% markup, while a 30% markup is only a 23.1% margin
- Use margin for profitability reporting and markup for quick pricing from cost
- Re-run the numbers after every supplier price change or before big discount campaigns
- Track gross and net margin separately — gross shows pricing, net shows overall health
- Benchmark your margin against your industry rather than an arbitrary target
- When costs rise, raise prices in step — leaving prices flat quietly shrinks your margin
Common Mistakes to Avoid
- Confusing margin (profit over price) with markup (profit over cost)
- Pricing from cost with a markup and then quoting that percentage as a margin
- Applying one flat margin across all products regardless of category and volume
- Ignoring supplier cost changes until margins have already eroded
- Offering discounts without checking the new margin stays profitable
Key Terms Explained
- Margin: Profit divided by revenue, expressed as a percentage of the selling price
- Markup: Profit divided by cost, expressed as a percentage added on top of cost
- Gross Profit: Revenue minus the cost of goods sold
- Revenue: The selling price you charge per unit
- Cost: What you pay to acquire or produce each unit
- Net Margin: Profit after all expenses, divided by total revenue
Related Concepts
- Profit Calculator — total profit, expenses, and bottom line for your business
- Break-even Calculator — how many units you must sell to cover fixed costs
- ROI Calculator — measure return on your marketing and investment spend
- SaaS Pricing Calculator — build a profitable subscription pricing model
- Discount Calculator — see the final price and savings before you commit to a sale
Example
You buy a product for $45 and sell it for $75. Gross profit = $75 - $45 = $30. Margin = $30 / $75 × 100 = 40%. Markup = $30 / $45 × 100 = 66.67%. For a second line that costs $90 and sells for $120: profit = $30, margin = $30 / $120 × 100 = 25%, markup = $30 / $90 × 100 = 33.33%. The same absolute profit produces different percentages depending on whether you compare it to price or cost.
Interpreting Your Results
Enter your revenue (selling price per unit) and your cost (what you pay per unit). The calculator subtracts cost from revenue to get gross profit, then divides it by revenue to get gross margin and by cost to get markup, both as percentages. A margin of 40% means you keep $0.40 of every $1.00 of revenue before other expenses; the equivalent markup is 66.67% because the $30 profit is compared to the $45 cost. Use the margin when analyzing profitability and the markup when working from cost. If your margin looks thin, renegotiate cost, raise price, or review the product line — and remember that margins below your industry's typical range usually signal a pricing problem rather than a fixed destiny.

