FormulaCraft

How to calculate a selling price from a target margin in Excel and Google Sheets

Topic:Finance basics
Excel & Google Sheets
=B2/(1-C2)

Verified example

Computed by a real spreadsheet engine on the sample data below.

ProductCostTarget MarginSelling Price
Item A600.4
Item B1200.35
Item C800.5
Item D2000.3

=B2/(1-C2)100

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Set up columns: Product, Cost, Target Margin (as a decimal, e.g. 0.4 for 40%), Selling Price.
  2. 2In D2, enter =B2/(1-C2) — this divides cost by (1 minus the margin) to get the required price.
  3. 3Copy the formula down for each product row.
  4. 4Format the Selling Price column as currency.

Tips

Need it for your exact data?

Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.

Frequently asked

What is the difference between margin and markup?

Margin is profit divided by selling price; markup is profit divided by cost. For a 40% margin use =Cost/(1-0.4); for 40% markup use =Cost*1.4.

How do I verify the margin from the resulting price?

Use =(D2-B2)/D2 to confirm the gross margin percentage matches your target.

More on Finance basics

See all →

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: