Profit Margin Calculator
Free profit margin calculator. Find gross margin, markup percentage, and selling price from cost and revenue. Supports three modes β perfect for retail, e-commerce, and business pricing.
Loading tool...
What is Profit Margin Calculator?
The Profit Margin Calculator is a free, browser-based tool that helps businesses, retailers, and e-commerce sellers determine profitability and set prices. It offers three modes: find the profit margin and markup from a known cost and selling price, calculate the required selling price to hit a target margin, and work backwards from a selling price and target margin to find the maximum cost you can afford. Margin (profit Γ· revenue) and markup (profit Γ· cost) are both shown so you never confuse the two. All calculations run 100% client-side β no data leaves your device.
Key Benefits
- Three flexible modes solve pricing from any direction
- Shows profit, margin %, and markup % together to avoid common pricing mistakes
- Locale-aware currency formatting (USD / THB) for accurate financial context
- Instant results with input sanitization and safe handling of zero-cost edge cases
- Copy a complete calculation summary for quotes, invoices, and reports
- 100% client-side and offline-capable β private and fast
Common Use Cases
- β’Retailers setting a selling price to hit a target gross margin
- β’E-commerce sellers comparing product profitability before listing
- β’Wholesalers quoting prices with a required markup percentage
- β’Freelancers and agencies pricing services against a cost baseline
- β’Buyers negotiating a maximum acceptable cost at a given margin
How to Use the Profit Margin Calculator
- Choose a Mode: Select Margin mode to find margin and markup from a cost and selling price, Revenue mode to find the selling price for a target margin, or Cost mode to find the maximum affordable cost at a given margin.
- Enter Your Known Values: Type your cost and revenue (Margin mode), cost and target margin (Revenue mode), or revenue and target margin (Cost mode). Enter percentages as plain numbers, e.g. 40 for 40%.
- Click Calculate: The tool instantly computes profit, profit margin, and markup. Margin equals profit divided by revenue; markup equals profit divided by cost β both are shown so you can compare them.
- Copy or Reset: Use Copy to save a full calculation summary to your clipboard for quotes, invoices, or spreadsheets. Use Reset to clear the results and start a new calculation.
Key Features
- Three calculation modes: Margin from cost and revenue, Revenue from cost and target margin, and Cost from revenue and target margin
- Computes profit, profit margin (%), and markup (%) side by side so you never confuse the two
- Locale-aware currency formatting (USD for English, THB for Thai) with two-decimal precision
- Copy a full calculation summary to clipboard for sharing in quotes, invoices, or spreadsheets
- Input sanitization guards against invalid characters, and edge cases like zero cost are handled safely
- 100% client-side and works offline β no sign-up and no data ever leaves your browser