Bookmarks    
nPr and nCr    
Random Number    
SD Calculator    
Sample Size    
Percent Error    
Density    
Molarity    
Molar Mass    
Ohm's Law    
Watts to Amps    
Voltage Drop    
Long Division    
Mixed Numbers    
Rounding    
Nth Root    
Exponents    
Half-Life    
Polar Form    
De Moivre    
3D Distance    
Point to Line    
Cross Product    
Determinant    
Sin Cos Tan    
Triangle Area    
Scale Factor    
Sector Area    
Ellipse Area    
Cube Volume    
Box Volume    
Sphere Volume    
Cone Volume    
Pipe Volume    
Time Duration    
Time Card    
Present Value    
Future Value    
Churn Rate    
A/B Test Calc    
SEO Traffic    
Ideal Weight    
Fat Intake    
Child Height    
Golf Handicap    
Heat Index    
Wind Chill    
Dew Point    
Download Time    
kWh to Cost    
AC Size (BTU)    
Heating Costs    
LED Savings    
Trip Gas Cost    
Tire Size    
Solar Output    
Solar Payback    
Battery Size    
Wall Area    
Gravel Needed    
Mortar Mix    
Slope Grade    
Curtain Size    
Soil Needed    
Sod Needed    
Ramp Length    
Blind Size    
Drain Slope    
Board Feet    
Heat Loss    
Furniture Fit    
Moving Boxes    
Plywood Cuts    
Shelf Sag    
   Add
Probability and random number calculators
Independent Events
Independent Events
Two Events Solver
Two Events Solver
Repeated Trials
Repeated Trials
Bayes' Theorem
Bayes' Theorem
Expected Value
Expected Value
Binomial Distribution
Binomial Distribution
nPr and nCr
nPr and nCr
Circular Permutation
Circular Permutation
With Repetition
With Repetition
Random Number
Random Number
Averages and statistics calculators
Average Calculator
Average Calculator
Mean Median Mode
Mean Median Mode
SD Calculator
SD Calculator
Quartiles & IQR
Quartiles & IQR
Frequency Table
Frequency Table
Correlation (r)
Correlation (r)
Normal Probability
Normal Probability
Z-Score Calculator
Z-Score Calculator
Confidence Interval
Confidence Interval
Sample Size
Sample Size
Mark & Recapture
Mark & Recapture
P-Value Calculator
P-Value Calculator
Percentage and ratio calculators
Percentage Calc
Percentage Calc
Percent Change
Percent Change
Percent Difference
Percent Difference
Percent Error
Percent Error
Ratio Calculator
Ratio Calculator
Discount Calculator
Discount Calculator
Sales Tax Calculator
Sales Tax Calculator
Margin Calculator
Margin Calculator
Speed calculators
Speed Calculator
Speed Calculator
Density and concentration calculators
Density
Density
Molarity
Molarity
Molar Mass
Molar Mass
Physics and electricity calculators
Ohm's Law
Ohm's Law
Watts to Amps
Watts to Amps
Resistor Colors
Resistor Colors
Voltage Drop
Voltage Drop
Unit conversion calculators
Weight Converter
Weight Converter
Shoe Size Converter
Shoe Size Converter
Integer and signed number calculators
Long Division
Long Division
LCM Calculator
LCM Calculator
GCF Calculator
GCF Calculator
Integer Calculator
Integer Calculator
Prime Factorization
Prime Factorization
Diophantine Solver
Diophantine Solver
Modulo Calculator
Modulo Calculator
Factor Calculator
Factor Calculator
Roman Numerals
Roman Numerals
Fraction, decimal and rounding calculators
Fraction Calculator
Fraction Calculator
Mixed Numbers
Mixed Numbers
Simplify Fractions
Simplify Fractions
Fraction to Decimal
Fraction to Decimal
Decimal to Fraction
Decimal to Fraction
Rounding
Rounding
Equation and inequality calculators
Linear Equation
Linear Equation
Linear Systems
Linear Systems
Quadratic Formula
Quadratic Formula
Absolute Value
Absolute Value
Quadratic Inequality
Quadratic Inequality
Polynomial calculators
Binomial Theorem
Binomial Theorem
Square root and nth root calculators
Simplify Radicals
Simplify Radicals
Nth Root
Nth Root
Exponent and logarithm calculators
Exponents
Exponents
Log Calculator
Log Calculator
Number of Digits
Number of Digits
Scientific Notation
Scientific Notation
Sci. Notation Math
Sci. Notation Math
Half-Life
Half-Life
Complex number calculators
Complex Numbers
Complex Numbers
Polar Form
Polar Form
De Moivre
De Moivre
Function and graph calculators
Slope Calculator
Slope Calculator
Linear Function
Linear Function
Direct & Inverse Variation
Direct & Inverse Variation
y = ax² Calculator
y = ax² Calculator
Distance Formula
Distance Formula
3D Distance
3D Distance
Section Formula
Section Formula
Point to Line
Point to Line
Lat/Long Distance
Lat/Long Distance
Complete the Square
Complete the Square
Circle Equation
Circle Equation
Conic Sections
Conic Sections
Polar Coordinates
Polar Coordinates
Sequence calculators
Arithmetic Sequence
Arithmetic Sequence
Geometric Sequence
Geometric Sequence
Fibonacci Sequence
Fibonacci Sequence
Recurrence Relation
Recurrence Relation
Vector calculators
Vector Calculator
Vector Calculator
Cross Product
Cross Product
Matrix calculators
Matrix Calculator
Matrix Calculator
Determinant
Determinant
Inverse Matrix
Inverse Matrix
Plane geometry calculators
Sin Cos Tan
Sin Cos Tan
Degrees ⇔ Radians
Degrees ⇔ Radians
a sin θ + b cos θ
a sin θ + b cos θ
Triangle Solver
Triangle Solver
Triangle Area
Triangle Area
Right Triangle
Right Triangle
Pythagorean Theorem
Pythagorean Theorem
Polygon Angles
Polygon Angles
Scale Factor
Scale Factor
Parallel Lines
Parallel Lines
Rectangle Area
Rectangle Area
Parallelogram Area
Parallelogram Area
Trapezoid Area
Trapezoid Area
Circle Calculator
Circle Calculator
Sector Area
Sector Area
Inscribed Angle
Inscribed Angle
Ellipse Area
Ellipse Area
Solid geometry calculators
Cube Volume
Cube Volume
Cube Surface Area
Cube Surface Area
Box Volume
Box Volume
Box Surface Area
Box Surface Area
Cylinder Volume
Cylinder Volume
Cylinder Surface
Cylinder Surface
Sphere Volume
Sphere Volume
Sphere Surface
Sphere Surface
Spherical Cap Volume
Spherical Cap Volume
Cap Surface Area
Cap Surface Area
Ellipsoid Volume
Ellipsoid Volume
Ellipsoid Surface
Ellipsoid Surface
Pyramid Volume
Pyramid Volume
Pyramid Surface
Pyramid Surface
Cone Volume
Cone Volume
Cone Surface Area
Cone Surface Area
Frustum Volume
Frustum Volume
Frustum Surface Area
Frustum Surface Area
Pipe Volume
Pipe Volume
Capsule Volume
Capsule Volume
Capsule Surface Area
Capsule Surface Area
Date and time calculators
Age Calculator
Age Calculator
Days Between Dates
Days Between Dates
Date Calculator
Date Calculator
Hours From Now
Hours From Now
Day of the Week
Day of the Week
Time Calculator
Time Calculator
Time Zone Converter
Time Zone Converter
Hours Calculator
Hours Calculator
Time Duration
Time Duration
Time Card
Time Card
Finance and economics calculators
Compound Interest
Compound Interest
Simple Interest
Simple Interest
Interest Calculator
Interest Calculator
TVM Calculator
TVM Calculator
Present Value
Present Value
Future Value
Future Value
ROI Calculator
ROI Calculator
IRR Calculator
IRR Calculator
Payback Period
Payback Period
Average Return
Average Return
GDP Calculator
GDP Calculator
Web marketing and ad metric calculators
CTR Calculator
CTR Calculator
Conversion Rate
Conversion Rate
CPC, CPM & CPA
CPC, CPM & CPA
ROAS Calculator
ROAS Calculator
Break-Even CPA
Break-Even CPA
LTV Calculator
LTV Calculator
CAC Calculator
CAC Calculator
Churn Rate
Churn Rate
A/B Test Calc
A/B Test Calc
A/B Sample Size
A/B Sample Size
SEO Traffic
SEO Traffic
Break-Even Point
Break-Even Point
Markup vs. Margin
Markup vs. Margin
CAGR Calculator
CAGR Calculator
Health and fitness calculators
BMI Calculator
BMI Calculator
Sleep Calculator
Sleep Calculator
Calorie Calculator
Calorie Calculator
BMR Calculator
BMR Calculator
TDEE Calculator
TDEE Calculator
Ideal Weight
Ideal Weight
Body Fat Calculator
Body Fat Calculator
Lean Body Mass
Lean Body Mass
Calories Burned
Calories Burned
Protein Intake
Protein Intake
Macro Calculator
Macro Calculator
Carb Calculator
Carb Calculator
Fat Intake
Fat Intake
Child Height
Child Height
Sports calculators
Golf Handicap
Golf Handicap
Pace Calculator
Pace Calculator
1RM Calculator
1RM Calculator
Target Heart Rate
Target Heart Rate
Weather calculators
Heat Index
Heat Index
Wind Chill
Wind Chill
Dew Point
Dew Point
Computer calculators
Base Converter
Base Converter
Subnet Calculator
Subnet Calculator
Download Time
Download Time
Household energy and budget calculators
Electricity Cost
Electricity Cost
kWh to Cost
kWh to Cost
Yearly kWh to Cost
Yearly kWh to Cost
AC Size (BTU)
AC Size (BTU)
AC Running Cost
AC Running Cost
Heating Costs
Heating Costs
Gas vs Electric
Gas vs Electric
LED Savings
LED Savings
Salary Calculator
Salary Calculator
Budget Calculator
Budget Calculator
Car calculators
Trip Gas Cost
Trip Gas Cost
EV Charging Cost
EV Charging Cost
EV vs Gas Cost
EV vs Gas Cost
MPG Calculator
MPG Calculator
Tire Size
Tire Size
Solar power and battery calculators
Solar Output
Solar Output
Solar Panel Count
Solar Panel Count
Solar Payback
Solar Payback
Battery Size
Battery Size
Home and DIY calculators
Tile Calculator
Tile Calculator
Stair Calculator
Stair Calculator
Concrete Volume
Concrete Volume
Wall Area
Wall Area
Wallpaper Rolls
Wallpaper Rolls
Paint Calculator
Paint Calculator
Flooring Needed
Flooring Needed
Exterior Walls
Exterior Walls
Gravel Needed
Gravel Needed
Mortar Mix
Mortar Mix
Slope Grade
Slope Grade
Lumber Cut List
Lumber Cut List
Lot Coverage/FAR
Lot Coverage/FAR
Sheet Vinyl Roll
Sheet Vinyl Roll
Insulation Needed
Insulation Needed
Curtain Size
Curtain Size
TV Size & Distance
TV Size & Distance
Soil Needed
Soil Needed
Sod Needed
Sod Needed
Block Calculator
Block Calculator
Brick Calculator
Brick Calculator
Deck Materials
Deck Materials
Ramp Length
Ramp Length
Pilot Hole Size
Pilot Hole Size
Room Ventilation
Room Ventilation
Paint Thinning
Paint Thinning
Baseboard & Trim
Baseboard & Trim
Blind Size
Blind Size
Picture Hanging
Picture Hanging
Drain Slope
Drain Slope
Screw Calculator
Screw Calculator
Board Feet
Board Feet
Fence Calculator
Fence Calculator
Wood Shrinkage
Wood Shrinkage
Caulk Calculator
Caulk Calculator
Heat Loss
Heat Loss
Furniture Fit
Furniture Fit
Moving Boxes
Moving Boxes
Storage Capacity
Storage Capacity
Plywood Cuts
Plywood Cuts
Shelf Sag
Shelf Sag

Profit Margin Calculator (Cost, Revenue, Profit and Markup)

Enter the two you know out of cost, revenue, margin (%) and profit, leave the others blank, and press "Calculate". The blank fields and the markup are calculated, and a pie chart shows how the revenue breaks down.

Fill in exactly two fields (three or more cannot be calculated). Enter the margin as a percentage (for 25%, enter "25"). If revenue is below cost (a loss), profit and margin are calculated as negative values.
Result and graph
Enter values in two of the fields on the left and press "Calculate". The result and a pie chart will appear here.

What you can do on this page

  • Enter any two of cost, revenue, margin (%) and profit, and the other two are calculated, along with the markup (profit as a percentage of cost)
  • "If I buy at $12 and sell at $16, what is my margin?" "What price gives a 20% margin on a $10 cost?" - pricing and profit questions answered in one place
  • A pie chart shows at a glance how revenue splits into cost and profit
  • A plain-language explanation of the formulas and copy-and-paste formulas for Excel, Google Sheets and Python are all on this page
On this page, "margin" is profit as a percentage of revenue (profit margin). Profit as a percentage of cost is shown separately as "markup". Cost and revenue must be greater than 0, and the margin must be under 100% (any currency works).

What is this calculation used for?

Pricing handmade goods and resale items (side business)

Say an item costs you $8 in materials and shipping, and you want a 40% margin. The price is \(8 \div (1 - 0.4) \approx 13.33\) dollars, so a price of about $13.50 works.
If you just pick $10, the margin is only 20% (a $2 profit), and after marketplace fees almost nothing is left. The numbers help you avoid that mistake before you list the item.

How the restaurant "30% food cost" rule sets menu prices

Restaurants often aim for a food cost of about 30% of the menu price. A 30% food cost is the same as a 70% gross margin, so a dish with $3 of ingredients is priced at \(3 \div 0.3 = 10\) dollars.
"$10 for $3 of food?" you may think, but the restaurant pays wages, rent and utilities out of the remaining $7 of gross profit. This formula shows how restaurant prices work.

Reading the operating margin in earnings news (financial literacy)

If the news says "revenue of $100 billion and operating income of $8 billion", the operating margin is \(8 \div 100 \times 100 = 8\)% (operating income is gross profit minus operating expenses such as wages).
Typical margins vary a lot by industry, but the calculation "profit ÷ revenue × 100" is the same as on this page. With this, you can judge for yourself how well a company makes money, whether you are investing or choosing where to work.

Not confusing a "20% markup" with a "20% margin" (business practice)

If you mark up a $1,000 item by 20% and sell it for $1,200, the markup is 20%, but the margin is only \(200 \div 1200 \times 100 \approx 16.67\)%. If your goal is a 20% margin, the right price is \(1000 \div 0.8 = 1250\) dollars.
It looks like a small difference, but on $10 million in sales it adds up to more than $300,000 in profit a year. It is a well-known mix-up in real businesses.

Knowing how far a markdown can go (still profitable at half price?)

A deli sandwich that costs $1.50 to make and sells for $5 has a margin of \((5 - 1.5) \div 5 \times 100 = 70\)%. Even at half price, $2.50, just before closing, the margin is \((2.5 - 1.5) \div 2.5 \times 100 = 40\)%, so it still makes money.
But a discount that takes the price below the $1.50 cost means a loss. This calculation is behind a store's decision that "half price is better than throwing it away".

Formulas and figures

Formula for profit
Figure
Standard notation (the usual math form)
\(P\) \(=\) \(R\) \(-\) \(C\)
In words (symbols replaced with words)
③ \(P\): profit \(=\) ① \(R\): revenue \(-\) ② \(C\): cost
The formula in words
① From the \(R\): revenue ,
② subtract the \(C\): cost ,
③ and you get the \(P\): profit
Quick example
The profit on an item bought for $1,200 and sold for $1,600 is
\(P\): profit \(=\) revenue ($1,600) \(-\) cost ($1,200)
\(1600 - 1200 = 400\)
Key idea
The "profit" here is revenue minus only the cost of the goods, which is called gross profit. It is the profit before expenses such as wages and rent, so a business pays those expenses out of its gross profit, and what is left is its final profit (net profit).
Formula for the profit margin
Figure
Standard notation (the usual math form)
\(M\) \(=\) \(P\) \(\div\) \(R\) \(\times\) \(100\)
In words (symbols replaced with words)
④ \(M\): margin (%) \(=\) ① \(P\): profit \(\div\) ② \(R\): revenue \(\times\) ③ \(100\): percent base
The formula in words
① Take the \(P\): profit
② divide it by the \(R\): revenue ,
③ multiply by the \(100\): percent base to turn it into a percent,
④ and you get the \(M\): margin (%)
Quick example
The margin when the profit is $400 and the revenue is $1,600 is
\(M\): margin (%) \(=\) profit ($400) \(\div\) revenue ($1,600) \(\times\) \(100\)
\(400 \div 1600 \times 100 = 25\ \ (25\%)\)
Key idea
The margin tells you what percent of revenue is profit. The key point is that you divide by revenue. It is easy to confuse with the markup in the next formula, which divides by cost. The "operating margin" you see in business news also uses revenue as the base in the same way.
Formula for markup
Figure
Standard notation (the usual math form)
\(K\) \(=\) \(P\) \(\div\) \(C\) \(\times\) \(100\)
In words (symbols replaced with words)
④ \(K\): markup (%) \(=\) ① \(P\): profit \(\div\) ② \(C\): cost \(\times\) ③ \(100\): percent base
The formula in words
① Take the \(P\): profit
② divide it by the \(C\): cost ,
③ multiply by the \(100\): percent base to turn it into a percent,
④ and you get the \(K\): markup (%)
Quick example
The markup when the profit is $400 and the cost is $1,200 is
\(K\): markup (%) \(=\) profit ($400) \(\div\) cost ($1,200) \(\times\) \(100\)
\(400 \div 1200 \times 100 \approx 33.33\ \ (33.33\%)\)
Key idea
The markup tells you by what percent the price was raised above cost. For the same sale (cost $1,200, revenue $1,600), the margin is 25% but the markup is about 33.33%. Margin uses revenue as the base and markup uses cost as the base. Only the denominator differs; both describe the same $400 profit.
Formula for revenue (from cost and margin)
Figure
Standard notation (the usual math form)
\(R\) \(=\) \(C\) \(\div\) \(\left(1 - \dfrac{M}{100}\right)\)
In words (symbols replaced with words)
③ \(R\): revenue \(=\) ① \(C\): cost \(\div\) ② \(1 - M \div 100\): 1 minus the margin as a decimal
The formula in words
① Take the \(C\): cost
② divide it by \(1 - M \div 100\): 1 minus the margin as a decimal (the share of revenue that is cost),
③ and you get the \(R\): revenue
Quick example
The revenue (selling price) that gives a 20% margin on an item that costs $1,000 is
\(R\): revenue \(=\) cost ($1,000) \(\div\) \(1 - 20 \div 100\)
\(1 - 20 \div 100 = 0.8\)
\(1000 \div 0.8 = 1250\)
Key idea
Wanting a 20% margin does not mean adding 20% to the cost (\(1000 \times 1.2 = 1200\) dollars). That price gives a 20% markup, and the margin is only \(200 \div 1200 \times 100 \approx 16.67\)%. The right price is $1,250. Check: profit \(250\) ÷ revenue \(1250\) × 100 = 20%. Also, the denominator of this formula is \(1 - M \div 100\), so if the margin \(M\) is 100% or more, the denominator is 0 or less and revenue cannot be found. The shape of the formula itself shows that a profit larger than revenue is impossible.
Profit is "revenue − cost", and the margin is "profit ÷ revenue × 100", a percentage based on revenue. Markup uses cost as the base instead, so the first thing to check is which amount a percentage is based on.

Symbols and terms

Symbols

\(C\) see Cost. What it cost to buy or make the item. (Example - if you bought it for $1,200, \(C = 1200\))
\(R\) are Revenue. The money you receive when you sell the item (the selling price).
\(P\) pee Profit. Revenue minus cost (gross profit). It is found with \(P = R - C\).
\(M\) em Margin. Profit as a percentage of revenue. It is found with \(M = P \div R \times 100\).
\(K\) kay Markup. Profit as a percentage of cost. There is no standard one-letter symbol for it, so this page uses \(K\). It is found with \(K = P \div C \times 100\).

Terms

profit margin Profit as a percentage of revenue, often just called "margin". It shows what percent of revenue you keep as profit. The "gross margin", "operating margin" and "net margin" in company earnings reports all use revenue as the base in the same way.
markup Profit as a percentage of cost. It shows by what percent the price was raised above cost. Retailers often set prices by adding a markup to the cost.
gross profit Revenue minus only the cost of the goods. It is the profit before expenses such as wages and rent. "Profit" on this page means gross profit.
cost of goods sold (COGS) What it cost to buy or make the goods you sold. For a store, it is the wholesale price it paid; for a manufacturer, it is the materials and production costs. It is the "cost" on this page.
cost percentage Cost as a percentage of revenue. It adds up to exactly 100% with the margin (cost percentage = 100 − margin). Restaurants use it as "food cost percentage", often aiming for about 30%.
revenue (sales) The money received from selling goods or services. For a single item, it is the selling price.

Good to know before you start

Here is what helps you use the calculation on this page with real understanding, not just by pressing the button.

Percents (Grade 6)
  • Knowing that a percentage is found by "part ÷ base amount"
  • Being able to switch between percents and decimals (\(25\% = 0.25\), \(0.7 = 70\%\))
  • Noticing that the percentage changes depending on which amount it is based on
Percent problems: part, whole and percent (Grades 6–7)
  • Being able to rearrange "base amount × percent = part" to find whichever one is missing (this is why finding revenue from cost and margin is a division)
Multiplying and dividing decimals (Grades 5–6)
  • Being able to divide by a decimal, as in \(700 \div 0.7\)
Rearranging formulas (Grades 7–8)
  • Understanding a formula such as \(P = R - C\), and being able to rearrange it, as in \(R = P + C\), to find a different quantity

How to calculate it in Excel

Copy the whole table below and paste it into cell A1 in Excel. It works as is.
Table to find the profit
Cost C 1200
Revenue R 1600
Profit P =B2-B1
Table to find the margin
Profit P 400
Revenue R 1600
Margin M (%) =B1/B2*100
Table to find the markup
Profit P 400
Cost C 1200
Markup K (%) =B1/B2*100
Table to find the revenue (from cost and margin)
Cost C 1000
Margin M (%) 20
Revenue R =B1/(1-B2/100)
After pasting, B1 and B2 are your inputs and B3 is calculated automatically.
B3 shows 400 in the first table (a $400 profit), 25 in the second (a 25% margin), about 33.33 in the third, and 1250 in the fourth (a $1,250 selling price). Just replace B1 and B2 with your own numbers.

How to calculate it in Google Sheets

Copy the whole table below and paste it into cell A1 in Google Sheets. It works as is.
Table to find the profit
Cost C 1200
Revenue R 1600
Profit P =B2-B1
Table to find the margin
Profit P 400
Revenue R 1600
Margin M (%) =B1/B2*100
Table to find the markup
Profit P 400
Cost C 1200
Markup K (%) =B1/B2*100
Table to find the revenue (from cost and margin)
Cost C 1000
Margin M (%) 20
Revenue R =B1/(1-B2/100)
The same formulas as in Excel work as is. Copy the whole table, paste it into cell A1, and replace B1 and B2 with your own numbers.

How to calculate it in Python

cost = 1200      # cost
revenue = 1600   # revenue

profit = revenue - cost            # profit
margin = profit / revenue * 100    # margin (%)
markup = profit / cost * 100       # markup (%)

print(f"Profit: {profit}")
print(f"Margin: {margin}%")
print(f"Markup: {markup}%")

# Working backward: find the revenue (selling price) from the cost and a target margin
cost2 = 1000            # cost
target_margin = 20      # target margin (%)
revenue2 = cost2 / (1 - target_margin / 100)
print(f"Revenue for a {target_margin}% margin: {revenue2}")
Runs with the standard library only. In this example the profit is 400, the margin is 25.0%, the markup is about 33.33%, and the revenue found by working backward is 1250.0. Replace the cost and revenue at the top with your own numbers and run it.

How to write it in LaTeX and other math languages (copy and paste)

Formula for profit
P = R − C
P = R - C
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <mi>P</mi>
    <mo>=</mo>
    <mi>R</mi>
    <mo>&#x2212;</mo>
    <mi>C</mi>
  </mrow>
</math>
P = R - C
r - c
P := R - C;
P = R - C;
P = R - C
Formula for the profit margin
M = P ÷ R × 100
M = \dfrac{P}{R} \times 100
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <mi>M</mi>
    <mo>=</mo>
    <mfrac><mi>P</mi><mi>R</mi></mfrac>
    <mo>&#xD7;</mo>
    <mn>100</mn>
  </mrow>
</math>
M = P/R xx 100
p/r*100
M := P/R*100;
M = P/R*100;
M = P/R × 100
Formula for markup
K = P ÷ C × 100
K = \dfrac{P}{C} \times 100
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <mi>K</mi>
    <mo>=</mo>
    <mfrac><mi>P</mi><mi>C</mi></mfrac>
    <mo>&#xD7;</mo>
    <mn>100</mn>
  </mrow>
</math>
K = P/C xx 100
p/c*100
K := P/C*100;
K = P/C*100;
K = P/C × 100
Formula for revenue (from cost and margin)
R = C ÷ (1 − M/100)
R = \dfrac{C}{1 - M/100}
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <mi>R</mi>
    <mo>=</mo>
    <mfrac>
      <mi>C</mi>
      <mrow><mn>1</mn><mo>&#x2212;</mo><mi>M</mi><mo>/</mo><mn>100</mn></mrow>
    </mfrac>
  </mrow>
</math>
R = C/(1 - M/100)
c/(1 - m/100)
R := C/(1 - M/100);
R = C/(1 - M/100);
R = C/(1 - M/100)

How to have ChatGPT  do the calculation

You are a calculation assistant for profit and pricing. Do the following calculations by actually running Python code, and base your answer only on the numbers from the execution result (do not answer by mental math or guessing).

An item bought for $1,200 is sold for $1,600.
Find each of the following:
1. The profit (revenue − cost)
2. The profit margin (profit ÷ revenue × 100, in %)
3. The markup (profit ÷ cost × 100, in %)
4. For a different item: the selling price that gives exactly a 20% margin on a cost of $1,000 (price = cost ÷ (1 − 20/100))

Show the formulas you used and the numbers from the execution result.

How to Use
  1. 1
    Enter your numbers
    Type the numbers you want to calculate with into the input fields
  2. 2
    Calculate
    Press the "Calculate" button
  3. 3
    Check the result
    The result appears on the spot. The same page also explains the idea behind the calculation and the formula
  DataChef Features
Easy and Free
Unlimited conversions for free.
No technical knowledge required.
Intuitive and user-friendly operation.
No Registration Required
Available immediately after access.
Can be used without registering personal information.
Safe and Secure
Fully SSL encrypted communication.
Automatic file deletion by clicking "download".
Fast
High-speed site access
and rapid file conversion.
No Watermark
No watermark.
No attribution required.
Commercial Use Available
Free for commercial use.
No need to contact us for commercial use permission.