Skip to content
Free business tool · Private by design

Profit margin and markup calculator

Enter cost and selling price to see profit, gross margin, and markup. The calculation runs in your browser; the values are not sent to Codekenz.

✓ Free✓ No account✓ No number upload
Profit50.00
Gross margin33.33%
Markup on cost50.00%

Your numbers stay in this browser.

The formulas

How the calculation works

Profit

Selling price − cost

Gross margin

Profit ÷ selling price × 100

Markup

Profit ÷ cost × 100

A quick example

If an item costs 100 and sells for 150, profit is 50, gross margin is 33.33%, and markup is 50%. Use the same currency for both values.

Margin and markup are different

Margin compares profit with the selling price. Markup compares profit with the cost. Mixing them can produce the wrong selling price.

Use it anywhere

Share the calculator or add it to your website.

The shared link never includes the numbers you enter. Website owners can also place the calculator inside a page while the calculation stays in each visitor’s browser.

Share this free tool

Send the calculator link to a colleague, client, or business owner.

Add it to your website

Copy this block into the page where you want the calculator to appear.

Open a clean preview

From calculation to operation

Turn the calculation into a clearer sales workflow.

POS Cashier - Codekenz connects checkout, product lookup, stock, customers, and reports in one app that works without a constant connection.

FAQ

Questions about profit margin

What is a good profit margin?

There is no single correct margin. It depends on the industry, operating costs, taxes, returns, and how quickly stock moves. Compare against your own full costs and local requirements.

Does this calculator include tax or fees?

No. Enter values that reflect the cost and selling-price basis you want to compare. Add taxes, marketplace fees, shipping, and other costs before relying on the result.

Does Codekenz save the numbers I enter?

No. The calculator runs in your browser and does not submit the cost or selling price to Codekenz.