Profit & Loss Calculator
MathCalculate profit or loss amount and percentage from cost price and selling price. Includes gross margin for business, trading, and school use.
Reviewed by the thecalcu.com team Ā· Last updated June 18, 2026
What is a P&L?
A Profit & Loss Calculator computes the profit or loss amount, the profit or loss percentage on cost price, and the gross margin on selling price, the three metrics that define whether a transaction is commercially viable. Enter the cost price and selling price for any product or deal and the calculator instantly shows whether you made or lost money, by how much, and at what margin.
Profit and loss arithmetic is taught in Indian schools from Class 7 onwards and is one of the most applied mathematical concepts in everyday commerce. Whether a kirana shop owner is pricing day-to-day stock, a freelancer is checking whether a project rate covers costs, a small trader is evaluating a supplier's quote, or a student is verifying CBSE homework, the same three formulas apply.
Profit = Selling Price ā Cost Price (when SP > CP) Loss = Cost Price ā Selling Price (when SP < CP) Profit% = (Profit Ć· Cost Price) Ć 100
The profit percentage always uses cost price as the base, this is the school mathematics convention and the standard for trading. Gross margin, by contrast, uses selling price as the base and is the metric preferred in retail analytics and financial reporting. Both are useful; the distinction matters when benchmarking against industry data.
A 20% profit on cost (markup) and a 20% gross margin on revenue are not the same thing: a 20% markup yields a 16.67% gross margin, and a 20% gross margin requires a 25% markup. This calculator shows both, eliminating the confusion that arises from using the two metrics interchangeably.
For transactions where a discount was applied before arriving at the selling price, use the Discount Calculator to compute the post-discount selling price first, then bring it here to evaluate the resulting margin.
Why Use a Profit & Loss Calculator?
Manual P&L arithmetic is error-prone when cost prices are irregular (e.g., goods purchased at different rates, or with transport costs added), and the three outputs (amount, profit%, gross margin) each require a separate calculation. This tool produces all three simultaneously.
Dual margin perspectives. The calculator shows both profit% on cost and gross margin on selling price. These are the two most commonly misquoted numbers in retail: a salesperson quoting "25% margin" and an owner expecting "25% on cost" can be discussing very different realities. Seeing both on the same screen eliminates ambiguity.
Loss detection. When cost price exceeds selling price, the profit outputs turn negative, a clear signal that the transaction is loss-making. The step breakdown labels the scenario explicitly ("Loss" vs "Profit"), making it easy to use the calculator as a quick sense-check before committing to a quote or purchase order.
Break-even analysis. By iterating the selling price slider until profit/loss = 0, the calculator identifies the exact break-even selling price, the minimum price that covers cost with zero margin. This is useful for setting floor prices in negotiations.
GST-cleared pricing. When both cost and selling prices are GST-inclusive, stripping GST first using the GST Calculator and then entering ex-GST prices here gives the true product-level margin.
Who Should Use This Calculator?
Small traders and retailers. Shopkeepers, kirana store owners, and market traders price products based on cost-plus margin. This calculator confirms that the selling price achieves the target profit%, and flags any items priced below cost. For seasonal or clearance sales with steep discounts, it immediately shows whether the discounted selling price is still above cost.
Students in Class 7ā12 and competitive exam aspirants. Profit and loss problems appear in CBSE (Chapter 8, Comparing Quantities, Class 8), ICSE, and in aptitude sections of CAT, SNAP, banking, and SSC exams. The step-by-step breakdown matches the working format expected in board exams.
Freelancers and consultants. A project rate is a selling price; the hours of work multiplied by an hourly cost (including tools, overheads, and opportunity cost) is the cost price. This calculator shows the resulting margin, a freelancer charging ā¹50,000 for a project that costs ā¹35,000 in time and tools is making 42.9% profit on cost and 30% gross margin.
E-commerce sellers and resellers. Platforms like Flipkart Seller Hub, Amazon Marketplace, and Meesho require sellers to maintain margin after commissions and logistics. Enter the cost price (including platform fees) and selling price to verify the actual margin on every SKU.
What Insights Does the Profit & Loss Calculator Give You?
Profit / Loss is the primary output, the rupee amount gained or lost on the transaction. A positive value is profit; negative is loss. With CP = ā¹1,000 and SP = ā¹1,200, profit = ā¹200. With SP = ā¹900, loss = ā¹100. This is the most direct measure of a transaction's outcome and the number that directly impacts cash flow.
Profit / Loss % expresses the same outcome as a fraction of cost price: (Profit Ć· CP) Ć 100. This is the school-standard profit percentage and the metric used in most trading contexts. At 20% profit on cost, every ā¹100 invested in stock yields ā¹120 back, a simple efficiency ratio for comparing products or categories in a portfolio.
Gross Margin expresses profit as a fraction of selling price: (Profit Ć· SP) Ć 100. This is the format used in retail KPIs, financial analysis, and benchmark comparisons against industry data. A 16.67% gross margin on SP is the same as a 20% markup on CP, both describe the same transaction, but which one you use depends on your audience and industry convention.
How to use this P&L calculator
Enter the Cost Price, the price at which you acquired or produced the item. Include all acquisition costs: purchase price, freight, customs duty, and any other cost directly attributable to acquiring the item. Use the slider for round-number exploration or type the exact value.
Enter the Selling Price, the price at which you sold or plan to sell. If the item was discounted, enter the final post-discount price. For a list price not yet finalised, use the slider to find the selling price that achieves your target margin.
Read Profit / Loss, positive means profit, negative means loss. The step breakdown labels the scenario explicitly so you can see at a glance.
Compare Profit% and Gross Margin, note that these two percentages will always differ unless profit is zero. Profit% will be higher than Gross Margin whenever there is a positive profit (because the cost base is smaller than the revenue base). Use Profit% for cost-based decision making; use Gross Margin for revenue-based benchmarking.
Iterate using the sliders, to find the selling price that achieves a target profit (e.g., 30% on cost), move the Selling Price slider upward while watching the Profit / Loss % output. The selling price at which Profit / Loss % equals your target is the price to quote.
Formula & Methodology
Profit / Loss Amount: Profit / Loss = Selling Price ā Cost Price (Positive = Profit; Negative = Loss) Profit / Loss Percentage (on Cost Price): P/L% = (Profit or Loss Ć· Cost Price) Ć 100 Gross Margin (on Selling Price): Gross Margin = (Profit or Loss Ć· Selling Price) Ć 100 Variables: - Cost Price (CP) = Price paid to acquire or produce the item (ā¹) - Selling Price (SP) = Price received on sale (ā¹) Worked example, CP = ā¹750, SP = ā¹1,050: Profit = ā¹1,050 ā ā¹750 = ā¹300Profit% = (ā¹300 Ć· ā¹750) Ć 100 = 40%Gross Margin = (ā¹300 Ć· ā¹1,050) Ć 100 = 28.57% Worked example, loss scenario, CP = ā¹5,000, SP = ā¹4,250: Loss = ā¹5,000 ā ā¹4,250 = āā¹750 (a loss)Loss% = (ā¹750 Ć· ā¹5,000) Ć 100 = ā15%Gross Margin = (āā¹750 Ć· ā¹4,250) Ć 100 = ā17.65% Finding selling price for a target profit%: SP = CP Ć (1 + Target Profit% Ć· 100) For 25% profit on CP = ā¹800: SP = ā¹800 Ć 1.25 = ā¹1,000 Assumptions and limitations: - Cost Price and Selling Price are entered as single values, the calculator does not model multi-unit lot pricing, weighted average costs, or landed costs with multiple components - GST is not factored into the P&L calculation, for accurate margins, enter ex-GST prices - The calculator does not model overhead allocation, operating expenses, or taxes on profit, this is a product-level gross P&L, not a business-level net P&L
Frequently Asked Questions