Excel Tips

How to Calculate Pricing and Profit Margins in Excel

By HelpMyData  ·  May 2026  ·  9 min read

Pricing is one of the most consequential decisions a small business makes and one of the least systematically approached. Most small business owners set prices based on what competitors charge, what feels reasonable, or what customers seem willing to pay — without ever calculating whether those prices actually produce a viable margin after all costs are accounted for.

Excel makes pricing analysis straightforward. You can calculate the true margin on every product or service you sell, find your break-even point, model different pricing scenarios, and build a pricing tool that tells you immediately whether a new price or discount is financially viable. Here is how to build it.

Margin vs Markup — Understanding the Difference First

Margin and markup are often confused and using the wrong one leads to serious pricing errors. They are both ways of expressing the relationship between cost and price but they mean different things and produce very different numbers.

Gross Margin

40%

Profit as a percentage of selling price. A 40% margin on a $100 product means $40 profit and $60 cost. Margin is calculated on the sale price.

Markup

67%

Profit as a percentage of cost. A 67% markup on a $60 cost produces a $100 selling price. Markup is calculated on the cost price.

The same product. The same cost. The same selling price. But 40% margin and 67% markup. Confusing the two — especially when communicating with an accountant or setting pricing targets — leads to mistakes. This guide uses margin throughout because it is the more useful number for profitability analysis.

Step 01

The Core Pricing Formulas

These are the four formulas that form the foundation of any pricing analysis in Excel. Set them up once in a simple calculator layout and you can test any price or cost scenario instantly.

Gross profit:

Gross Profit = Selling Price - Cost of Goods

Gross margin percentage:

Gross Margin % = (Selling Price - Cost of Goods) / Selling Price

Selling price needed to achieve a target margin:

Required Selling Price = Cost of Goods / (1 - Target Margin %) Example: To achieve 40% margin on a product that costs $60: Required Price = $60 / (1 - 0.40) = $60 / 0.60 = $100

Markup percentage:

Markup % = (Selling Price - Cost) / Cost Example: $100 selling price on $60 cost: Markup = ($100 - $60) / $60 = 66.7%
Build a simple calculator first: Before building a full product pricing sheet, set up a five-cell calculator on a blank sheet. Enter Cost in one cell, Target Margin in another, and have a third cell calculate the required price automatically using the formula above. This becomes your quick pricing reference whenever you are quoting a new job or setting a new product price.
Step 02

Product Pricing Analysis Sheet

For businesses with multiple products or services, a pricing analysis sheet shows the margin on everything you sell side by side. This view often reveals pricing problems that are invisible when you look at products individually — services priced below cost, products with margins too thin to survive a cost increase, or a pricing structure that looks consistent but is actually wildly inconsistent in profitability.

ColumnWhat to Enter or Formula
Product or ServiceName of what you sell
Direct CostMaterials, cost of goods, or direct labor cost
Overhead AllocationYour share of fixed costs allocated to this product
Total Cost=Direct Cost plus Overhead Allocation
Current PriceWhat you currently charge
Gross Profit=Current Price minus Direct Cost
Gross Margin %=Gross Profit / Current Price
Net Profit=Current Price minus Total Cost
Net Margin %=Net Profit / Current Price
Suggested Price=Total Cost / (1 - Target Margin %)
Price Gap=Suggested Price minus Current Price

Here is what this looks like for a typical small product or service business:

ProductTotal CostCurrent PriceNet MarginSuggested PriceGap
Basic Service$42$75 44% $70-$5
Premium Service$85$120 29% $142+$22
Add-on Package$28$35 20% $47+$12
Consultation$95$100 5% $158+$58

This table tells a clear story. The consultation service is severely underpriced at only 5% net margin. The add-on package is also below target. The basic service is slightly over-priced relative to its cost. The premium service has the biggest pricing gap and the best opportunity for a price increase.

Net margin vs gross margin: Always use net margin when making pricing decisions, not just gross margin. A product with 60% gross margin sounds healthy until you factor in your overhead allocation and discover the net margin is only 8%. Gross margin ignores the fixed costs of running your business. Net margin does not.
Step 03

Break-Even Analysis

Break-even analysis tells you how many units you need to sell, or how much revenue you need to generate, to cover all your costs and reach zero profit. Knowing your break-even point tells you whether your business model is viable at your current price and cost structure, and what volume you need to hit to start making money.

Break-even in units:

Break-Even Units = Fixed Costs / (Selling Price - Variable Cost Per Unit) Example: Fixed Costs = $8,000 per month (rent, salaries, software) Selling Price = $100 per unit Variable Cost = $40 per unit (materials, packaging, shipping) Contribution Margin = $100 - $40 = $60 per unit Break-Even = $8,000 / $60 = 134 units per month

Break-even in revenue:

Break-Even Revenue = Fixed Costs / Gross Margin % Example: Fixed Costs = $8,000 Gross Margin = 60% Break-Even Revenue = $8,000 / 0.60 = $13,333 per month
Build a scenario table: Set up a small table showing break-even at different price points. As you raise or lower your price, your contribution margin changes and so does your break-even volume. Seeing that a 10% price increase reduces your required sales volume by 15% often makes the pricing decision much clearer than just looking at margin percentages in isolation.
Step 04

Discount and Promotion Impact Calculator

One of the most practically useful pricing tools in Excel is a discount impact calculator. It shows you exactly how many additional units you need to sell to maintain the same total profit when you offer a discount. This number is almost always higher than people expect, which is why unplanned discounting is one of the fastest ways to erode profitability.

Required Sales Increase to Maintain Profit After a Discount: Required Increase % = Discount % / (Original Margin % - Discount %) Example: Original Margin = 40% Discount = 10% Required Increase = 10% / (40% - 10%) = 10% / 30% = 33% You need to sell 33% more units just to make the same total profit. If you sell 100 units normally, you need to sell 133 units after the discount.

Most small business owners offering a 10% discount think they need to sell a little more to make up for it. The math says they need to sell 33% more. A 20% discount on a 40% margin product requires selling 100% more units — double the volume — just to break even on profit. This calculator makes those numbers visible before the discount is offered rather than after.

Use this before every sale or promotion: Before running any discount or promotion, enter your current margin and proposed discount into the calculator. If the required sales increase is realistic based on your history, the promotion makes sense. If you would need to triple your volume to maintain the same profit, it probably does not. Data-driven discounting decisions beat gut feel every time.

Putting Pricing on a Regular Review Schedule

Pricing is not a one-time decision. Costs change, competitor prices change, your value proposition evolves, and inflation erodes margins gradually over time. A pricing analysis that made sense two years ago may be quietly losing you money today.

Building your pricing analysis in Excel and reviewing it quarterly — updating your costs and comparing your current prices against your target margins — is one of the highest-value financial habits a small business owner can develop. Most businesses that do this discover at least one or two products or services that need a price increase, and implementing even one of those increases typically more than pays for the time spent on the review.

If you would like a custom pricing analysis workbook built for your specific products and cost structure, that is exactly what we do at HelpMyData.

Want a Custom Pricing Analysis Tool Built for Your Business?

Tell us about your products and cost structure and we'll build a complete Excel pricing calculator — margins, break-even analysis, and discount impact modeling. Starting at just $75.

📧 Get Started Today