Accounting0

How to Calculate Selling Price Using Cost, Markup, and Margin

Posted by Olivia Barnes-BrettLast Updated July 21st, 2026
— 10 minutes reading

Key takeaways

  • A product’s selling price is what customers pay, and it must exceed the cost price (including production, shipping, labor, etc.) for your business to profit.
  • To determine the optimal price, consider buyers’ willingness to pay, your necessary profit margin, market conditions, and competitor pricing.
  • The selling price formula is: Selling Price = Cost + Desired Profit Margin.
  • Average Selling Price (ASP) is calculated as total revenue divided by units sold, helping you track pricing trends or benchmark against competitors.
  • Besides adjusting prices, improving inventory management can reduce costs and enhance profitability.

Deciding how to price a product is a delicate balancing act. On one hand, a business needs to make a good profit, but on the other, the price tag still needs to attract customers. Today we’re delving into how to use the selling price formula to work out prices and what it means for your business.

What selling price means

A selling price is the amount your customer pays for a product or service. This is different from the cost price, which refers to how much a product costs your business, not the customer. For your business to make a profit, your selling price needs to be higher than your cost.

What is the selling price formula?

The simplest way to calculate a product’s selling price is to add your cost and your desired profit margin together, a basic form of cost-plus pricing. This ensures you’re covering what it costs your business to acquire or produce the product while leaving room for profit. The selling price formula looks like this:

Selling Price = Cost + Profit Margin

Keep in mind that this is a basic product pricing formula. Depending on your business, you may also need to account for things like shipping, taxes, discounts, or other costs when deciding on your final selling price.

Selling price formula:
Selling price = (cost) + (profit margin)

How to calculate selling price step by step

Calculating your selling price starts with understanding what your product actually costs your business. Once you know your total costs, you can decide how much profit you want to make and check whether your price makes sense for your market.

Step one: calculate total product cost

In the selling price formula, cost is the total amount your business spends on a product. Exactly what goes into that cost depends on your business model. For example, a retailer that purchases finished goods will have different costs than a manufacturer producing products in-house.

Knowing which costs are included helps you price your products accurately and keep a close eye on your profits.

Include direct materials and purchase costs

If you purchase products from a supplier, your costs typically include the purchase price along with any expenses directly related to getting the product into your inventory, such as freight, shipping, duties, or import fees.

Include labor, overhead, and channel costs

If you manufacture your own products, you’ll also need to account for the cost of raw materials, direct labor, and manufacturing overhead. Depending on how you sell your products, you may also choose to include costs associated with specific sales channels, such as marketplace fees or fulfillment costs.

For a deeper dive into calculating product costs, check out our guides on cost of goods sold (COGS) and cost of goods manufactured. We’ve also put together a free Inventory Formula Cheat Sheet that puts seven of the most common inventory formulas in one place.

Step two: choose your target markup or margin

Once you’ve calculated your total product cost, decide how much profit you want to earn on each sale. This is where you’ll choose either a target markup or margin, depending on how your business prices products. The amount you choose will have a direct impact on your final selling price.

Step three: validate against customer demand and competition

Before finalizing your selling price, compare it against the market. Even if your pricing formula produces a profitable number, it still needs to align with customer willingness to pay. Reviewing competitor pricing and understanding what your customers value can help you apply competitor-based pricing in a way that’s still profitable.

Things to consider when using the selling price formula:
"Be sure to consider customers, cost, competitors, expenses, and positioning when deciding on your product's selling price."

Selling price vs markup vs margin

Selling price, markup, and profit margin are closely related, but they aren’t the same thing. Understanding the difference is essential because using the wrong formula can lead to pricing products too high or too low.

  • Selling price is the amount your customer pays.
  • Markup is how much you increase a product’s cost to determine its selling price.
  • Profit margin is the percentage of the selling price that remains as profit after covering the product’s cost.

Many people use the terms markup and margin interchangeably, but they’re calculated differently and almost always produce different percentages.

Markup formula

Markup is based on a product’s cost. It tells you how much you’ve increased the price compared to what the product cost your business.

Markup = (Selling Price − Cost) ÷ Cost × 100

For example, if a product costs $50 and you sell it for $75:

Markup = ($75 − $50) ÷ $50 × 100 = 50%

Markup is commonly used when setting prices because it’s easy to calculate from your costs and helps ensure every sale generates a consistent return.

Margin formula

Profit margin is based on the product’s selling price, not its cost. It measures how much of each sale becomes gross profit after covering the cost of the product.

Margin = (Selling Price − Cost) ÷ Selling Price × 100

Using the same example:

Margin = ($75 − $50) ÷ $75 × 100 = 33.3%

Notice that the markup is 50%, but the profit margin is only 33.3%. That’s why it’s important not to confuse the two when pricing products.

Common pricing mistakes

Pricing products isn’t just about covering your costs. Here are some of the most common mistakes businesses make:

  • Confusing markup with margin: A 50% markup does not equal a 50% profit margin.
  • Leaving out costs: Shipping, duties, labor, overhead, and marketplace fees can all affect your true product cost.
  • Pricing based only on competitors: Competitive pricing matters, but your prices still need to cover your costs and generate a profit.
  • Never reviewing your prices: Supplier costs, customer demand, and market conditions change over time, so your pricing should too.

Taking the time to calculate your costs accurately and apply the right pricing formula will help you set prices that are both competitive and profitable.

Standard selling price, average selling price, and examples

There is no single standard selling price that works for every product or business. Because costs, business models, and target profits vary, a “standard” selling price would really mean applying the same markup or profit margin across different products.

You may hear general rules, such as using a 25% markup, but healthy margins can look very different across industries and even between competitors. A service business, for example, may expect a much higher margin than a retailer selling physical products.

With that in mind, your pricing strategy should cover both direct and indirect costs, reflect what customers are willing to pay, and leave enough room for a healthy profit.

Average stats on gross profit margin and net profit margin by industry in 2022
Average stats on gross profit margin and net profit margin by industry in 2022
Average stats on gross profit margin and net profit margin by industry in 2022.

How to calculate average selling price (ASP)

Average selling price, or ASP, shows how much a product sold for on average during a specific period. This can be useful when your prices change because of promotions, seasonal demand, shortages, or other market conditions.

To calculate ASP, divide the total revenue generated by a product by the total number of units sold.

Average Selling Price = Total Revenue ÷ Total Units Sold

You can calculate ASP for a single product, a product category, or a wider range of items, depending on what you want to analyze.

Average selling price example

Imagine a sneaker retailer wants to calculate the average selling price of its best-selling style. The store is located near a large college, so it often runs promotions at the start of each semester.

During the third quarter, the retailer sells:

  • 150 pairs at $80 each
  • 250 pairs at $120 each

First, calculate the revenue from each price point:

150 × $80 = $12,000

250 × $120 = $30,000

The total revenue is $42,000, and the retailer sold 400 pairs in total.

ASP = $42,000 ÷ 400 = $105

Although the sneakers sold at two different prices, their average selling price for the quarter was $105.

Both the selling price formula and average selling price formula are very useful when pricing products. The average selling price formula looks like this:
Average selling price = revenue / units sold
Total sneaker revenue:
(150 x $80) + (250 x $120) = $12000 + $30000 = $42000
Number of units sold:
150 + 250 = 400
Average selling price:
$42000/400 = $105

When ASP can mislead your business

Average selling price can help you with price benchmarking, competitor comparisons, pricing trends, and understanding how products perform across different sales channels.

For example, retailers may use ASP data to see whether their prices are competitive or whether promotions are bringing down the average amount earned per sale. It can also help you identify whether customers are shifting toward lower-priced or premium products.

However, ASP does not always tell the full story. A lower average selling price could indicate weaker demand, but it could also be the result of a successful promotion that increased overall sales. Similarly, ASP may change when a business sells a different mix of products, even if individual prices remain the same.

Product life cycles can also affect how useful ASP is. A smartphone may steadily decline in price after a newer model is released, while a long-standing product like breakfast cereal may remain relatively stable.

So, ASP works best when you review it alongside sales volume, product mix, costs, and profit margins rather than treating it as a standalone measure of performance.

Pricing factors that change the final selling price

Calculating your selling price is only part of the equation, because break-even analysis shows how much you need to sell at that price to cover your costs. The final price you charge also depends on your customers, your competitors, and the additional costs associated with selling your products.

Customer willingness to pay

How much a customer is willing to pay depends on factors such as your product’s quality, perceived value, and brand reputation. This is where your market positioning becomes important. Businesses with premium brands can often charge higher prices because customers perceive their products as being worth more.

At the same time, your selling price still needs to cover your costs. Remember that a product’s cost isn’t just what you paid to purchase or manufacture it. Shipping, labor, overhead, and other expenses all affect your gross profit margin and should be considered when setting your prices.

Competition, demand, and market conditions

The market also plays a major role in determining what you can charge. During periods of high demand or limited supply, customers may be willing to pay more. On the other hand, if competitors lower their prices or the market becomes saturated, you may need to adjust your pricing to remain competitive.

Regularly reviewing both your competitors’ prices and changes in customer demand can help you find the right balance between profitability and competitiveness.

Taxes, fees, and price transparency notes

Depending on your business, the final amount a customer pays may also include taxes, shipping charges, marketplace fees, or other costs. Whether these are built into your selling price or shown separately, it’s important to understand how they affect your overall profitability.

Being transparent about additional charges can also improve the customer experience by helping buyers understand exactly what they’re paying for and reducing surprises at checkout.

Maximizing profits through inventory control

Having the right selling prices is a key component of a successful business. But increasing the selling price isn’t the only way to boost profits. Improving the way your business handles and manages inventory can lower your costs and strengthen your contribution margin.

This could include everything from how you track your assets, to efficiently scanning deliveries, organizing your warehouse, and more. To find out more, have a look at our inventory management articles or see how inFlow’s all-in-one software could help boost your business.

Try inFlow for free
No credit card required. Sign up now!