Profit is price minus cost. Margin is profit as a percentage of the selling price; markup is profit as a percentage of cost. The calculator shows all three and works out the selling price needed for a target margin. The layout keeps the headline result prominent while the working stays visible for anyone who wants to check the math.
What does this tool do?
Computes profit margin, markup and gross profit from cost and selling price — and works backwards from any two values. Shows margin (on price) and markup (on cost) side by side, the pair everyone confuses.
It is designed for repeated use: change any input and every dependent figure recalculates immediately, so comparing scenarios — a higher rate versus a shorter tenure, this month versus last — takes seconds rather than a fresh spreadsheet. The layout keeps the headline result prominent while the working stays visible for anyone who wants to check the math.
The controls are straightforward: the inputs are “Cost price”, “Selling price”, “Currency symbol (optional)” and “Target margin (%)”. Results update live as you work — there is no waiting and nothing to submit.
How do I use this tool?
Enter your figures below — every result updates the instant you type, so comparing scenarios is just a matter of changing a number and watching the answer move.
- Enter your values in “Cost price”, “Selling price”, “Currency symbol (optional)” and the other fields.
- Results update instantly as you type — no button to press.
How does it work?
Margin = (price − cost) ÷ price × 100; markup = (price − cost) ÷ cost × 100. A 25% markup equals a 20% margin — same rupees, different base. The tool derives the missing values from any two inputs.
Precision is full floating-point throughout; only the displayed result is rounded for readability. Intermediate steps are not rounded, which avoids the small compounding errors you get from rounding mid-calculation on a phone calculator.
Use cases in Pakistan
Karyana stores, cloth merchants and Daraz sellers live on these numbers: buying at Rs 800 and selling at Rs 1,000 is 25% markup but 20% margin — quoting the wrong one misprices everything. Restaurants, pharmacies and mobile shops use margin for menu pricing and markup for supplier negotiations.
Families use it for household budgeting and school-fee planning; small businesses for pricing and payroll math; students for everything from BISE numericals to CSS preparation. Wherever the same calculation is repeated monthly — bills, salaries, savings targets — this page replaces the phone-calculator ritual.
Limitations
It handles one product’s unit economics, not the business: rent, salaries, wastage and taxes sit outside these figures. Margin on price vs markup on cost must not be mixed in the same discussion — label which you mean.
Assumptions are stated on the page — read them before trusting the headline number for money, health or legal decisions. A calculator amplifies the quality of its inputs: careful numbers in, trustworthy numbers out.
Frequently asked questions
Margin vs markup?
Margin divides profit by selling price; markup divides by cost. Rs 800 cost, Rs 1000 price → 20% margin, 25% markup. For figures that go into applications or documents, double-check the inputs against the source — the math is exact, but only for the numbers you enter.
How do I price for a 30% margin?
Price = cost ÷ (1 − 0.30). On Rs 700 cost: Rs 1,000. Enter target margin above to solve any case. Try varying one input at a time to see which assumption drives the result; that sensitivity check is often more valuable than the headline number.
What margin do shops usually keep?
Varies wildly: karyana 8–15%, clothing 40–60%+, restaurants 60–70% on food cost. There is no standard. Save or screenshot the result with its inputs when the figure matters later — reconstructing “what did I enter?” is harder than it sounds.
Does it include GST?
Only if your cost/price inputs include it. Enter both ex-tax or both inc-tax for a consistent figure. For figures that go into applications or documents, double-check the inputs against the source — the math is exact, but only for the numbers you enter.
Is my data uploaded or stored?
No. This tool runs entirely in your browser — what you type or paste never leaves your device, is never sent to a server, and is never stored. Closing the tab removes all trace. Try varying one input at a time to see which assumption drives the result; that sensitivity check is often more valuable than the headline number.
Is it really free? Do I need an account?
Yes, free, and no account needed. Open the page and use it — no sign-up, no trial, no watermark on results. Save or screenshot the result with its inputs when the figure matters later — reconstructing “what did I enter?” is harder than it sounds.
Updated October 2026 · Built and tested by Sharjeel Tahir · How our tools are tested