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.
Profit / Loss
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.
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