Gross Profit Calculator
Calculate gross profit, gross profit margin, and markup from your revenue and cost of goods sold (COGS). Includes a margin comparison table for common scenarios.
100% client-side. Your data never leaves your browser.
| Revenue | COGS | Gross Profit | Margin |
|---|
Related Tools
Margin and Markup
See gross profit margin and markup percentage side by side. Understand how they differ and use the comparison table to benchmark your business.
Multiple Calculation Modes
Calculate from revenue and COGS, find the maximum COGS for a target margin, or determine the revenue needed from COGS and a target margin.
100% Private
Everything runs in your browser. No data is sent to any server. Your financial information stays completely private.
Need something custom built?
I build custom Laravel tools, web apps, and SaaS platforms. If you need something beyond off-the-shelf, let's talk.
ContactFrequently Asked Questions
What is the difference between margin and markup?
Both divide the gross profit, but by different numbers. Margin divides it by the revenue, markup by the cost. A product that costs 60 and sells for 100 has a gross profit of 40: that is a 40% margin and a 66.7% markup. A 50% markup is only a 33.3% margin, so check which one a target refers to. The calculator shows both.
What counts as cost of goods sold for a SaaS?
The costs of delivering the service to your current customers. Most SaaS companies count hosting and infrastructure, third-party APIs billed per use (AI model APIs are a large one), payment processing fees, and customer support.
Building new features, marketing, sales and office costs are operating expenses, not cost of goods sold. They come after gross profit, so leave them out here.