Rankite
ServicesResultsToolsTeamAboutBlogCareersContactFree SEO Audit
Free tool

Gross Margin Calculator: Profit, Margin and Markup

Enter your revenue and cost of goods sold to get your gross profit, gross margin and markup instantly, free and with no signup.

Home / Tools / Gross Margin Calculator
Gross profit
$4,000
Gross margin
40%
Markup
67%

A 40% gross margin is solid for most retail and manufacturing businesses. Typical ranges: retail 25-35%, manufacturing 30-40%, software 70-90%. It varies by industry.

Built by Rankite, the SEO team behind Swordfish AI's +400% revenue and Zluri's +45% organic growth. See the case studies

Gross margin is the share of revenue you keep after paying for the goods you sold. The gross margin formula is straightforward: gross profit divided by revenue, times 100, where gross profit is revenue minus cost of goods sold (COGS). It is the single clearest gauge of whether your pricing covers your direct costs, and the gross margin calculator above runs the math the moment you type.

How to calculate gross margin

Start with two numbers: revenue and COGS. COGS is only the direct cost of producing or buying what you sold, such as materials, the wholesale price, or production labor. It does not include rent, salaries or marketing. Subtract COGS from revenue to get gross profit, then divide by revenue.

Worked example: you sell $10,000 of product in a month and the goods cost you $6,000. Gross profit is $10,000 minus $6,000, which is $4,000. Your gross profit margin is $4,000 divided by $10,000, or 40%. The same gross profit divided by the $6,000 cost gives a 67% markup. Keep COGS consistent month to month so the trend means something.

What is a good gross margin?

There is no universal target, because cost structures differ wildly. As a rough guide: grocery and general retail often run 25% to 35%, restaurants land near 60% to 70% on food, manufacturing sits around 30% to 40%, professional services reach 50% or more, and software or SaaS commonly post 70% to 90%. Judge your gross profit margin against your own industry, not the economy as a whole. A 35% margin is excellent for a supermarket and worrying for a software company.

The deeper point: a higher gross margin gives you more cash per sale to cover everything else and to reinvest. If your number sits below your sector range, the fix is usually pricing discipline or supplier negotiation, not just selling more.

Gross margin vs net margin vs markup

These three get confused constantly. Gross margin counts only COGS. Net margin goes further and subtracts every other cost, rent, payroll, marketing, interest and tax, so it tells you what actually reaches the bottom line. A company can show a 60% gross margin and a 5% net margin once the overhead is paid.

Markup is the same gross profit measured against cost rather than price, so it always reads higher than the matching margin: a 40% margin is a 67% markup. Use margin to understand profitability and markup to set prices from a known cost. When customers worth more than your acquisition cost arrive through organic search, that revenue lands at full margin, which is exactly why SEO compounds into profit over time.

Related articles

FAQ

Gross Margin Calculator: questions, answered

What is the gross margin formula?
Gross margin equals gross profit divided by revenue, times 100. Gross profit is revenue minus cost of goods sold (COGS). So if you sell for $10,000 and your COGS is $6,000, gross profit is $4,000 and gross margin is 40%. The calculator above runs this from your own numbers.
What is a good gross margin?
It depends on the industry. Retail and grocery often run 25% to 35%, restaurants 60% to 70% on food, manufacturing 30% to 40%, and software or SaaS 70% to 90%. A margin is healthy if it is at or above the typical range for your sector and leaves enough after operating costs to be profitable.
What is the difference between gross margin and markup?
Both use the same gross profit, but the denominator differs. Gross margin is gross profit divided by revenue (the selling price). Markup is gross profit divided by COGS (the cost). A 40% margin equals a 67% markup on the same product, which is why the two numbers always look different.
Is gross margin the same as net margin?
No. Gross margin only subtracts the direct cost of goods sold. Net margin subtracts everything else too: rent, salaries, marketing, interest and tax. A business can have a strong 60% gross margin and still post a small or negative net margin once all operating costs are counted.
How do I increase my gross margin?
You have two levers: raise the price or lower COGS. Negotiating supplier costs, reducing waste, improving product mix toward higher-margin items, and selling more without raising fixed costs all help. Winning customers through organic search rather than paid ads also protects margin, since each sale carries no per-click acquisition cost.

More free tools

Let's grow

Ready to own page one?

Get a free, no-obligation SEO audit and a 30-minute strategy session. We'll show you exactly where the growth is hiding.

Book your free audit Explore services
Get in touch

Tell us about your project

Fill out the form and we'll get back to you within one business day. Prefer email? Write to us directly at contact@rankite.com.

Or copy our email and write to us directly: contact@rankite.com