Any 2 Known Values Solver

Free Margin Calculator

Enter any two known values (Cost, Selling Price, Dollar Profit, Target Margin, or Markup) to automatically calculate the remaining financial metrics for your product.

$
$

Calculated Financial Results

Selling Price$100.00
Profit Amount$50.00
Profit Margin50.00%
Product Markup100.00%
Quick Answer: How do you calculate profit margin from cost and price?

To calculate profit margin, subtract your product cost from your selling price to determine dollar profit. Then divide dollar profit by the selling price and multiply by 100 to get your margin percentage.

What the Margin Calculator Does

The MerchSites Margin Calculator is a multi-directional financial solver engineered for retail buyers, online sellers, and product creators. Unlike basic single-purpose calculators, this tool allows you to input any two known financial variables (such as Product Cost and Target Margin) to automatically calculate all remaining metrics, including Selling Price, Dollar Profit, and Markup Percentage.

Whether you are setting retail prices for a new catalog item or reverse-engineering wholesale supplier negotiations, this solver provides instant mathematical clarity.

Who Should Use This Tool

Handmade & Craft Sellers

Etsy creators and artisans calculating sustainable retail prices based on raw material costs and crafting labor hours.

E-commerce Store Operators

Shopify, Amazon, and WooCommerce merchants evaluating catalog pricing tiers and discount promo limits.

Retail Inventory Buyers

Boutique owners negotiating volume discounts with wholesale suppliers to protect gross profit goals.

Product Managers & Founders

Entrepreneurs modeling unit economics before ordering production tooling or factory molds.

Essential Financial Terms Defined

Product Cost (COGS)

The direct amount paid to manufacture, purchase, or assemble one unit of product, including raw materials, packaging, and landed shipping.

Selling Price (Revenue)

The final retail price charged to the customer at checkout before taxes.

Dollar Profit

The absolute dollar amount gained per unit, calculated as Selling Price minus Product Cost.

Profit Margin (%)

The percentage of total selling price that remains as profit after deducting product cost.

The Margin Formula Explained

Profit margin measures how efficiently a retail item converts customer revenue into profit. The fundamental formula is:

Profit Margin % = ((Selling Price - Cost) / Selling Price) × 100

For example, if an item costs $30 to manufacture and sells for $100: Dollar profit is $100 - $30 = $70. Profit margin is ($70 / $100) × 100 = 70%.

4 Calculation Modes Explained

1. Cost + Selling Price

Calculates dollar profit, profit margin percentage, and required markup percentage when you know both the product cost and current selling price.

2. Cost + Target Margin %

Calculates the exact retail selling price needed to achieve your desired margin goal for a given wholesale cost.

3. Cost + Target Markup %

Calculates retail price and equivalent profit margin when applying a standard cost-plus markup percentage.

4. Selling Price + Target Margin %

Calculates the maximum allowable unit product cost you can pay a supplier while keeping a target retail price.

Worked Example: Etsy Handmade Leather Goods Seller

Suppose an artisan crafts handmade leather wallets sold on Etsy.

Raw Material Leather & Hardware Cost:$22.00
Crafting Labor Allocation:$6.00
Total Unit Product Cost:$28.00
Target Retail Price on Etsy:$85.00
Calculated Profit & Margin:$57.00 Profit (67.06% Margin / 203.57% Markup)

Margin vs. Markup: The Crucial Difference

Confusing margin with markup is one of the most frequent financial errors in retail:

  • Profit Margin is calculated relative to revenue (Selling Price). It can never exceed 100%.
  • Markup is calculated relative to cost (COGS). It can easily exceed 100% (e.g., a 200% markup doubles the cost price).

Common Pricing & Margin Errors

Applying Markup Percentage as Margin: Adding 50% to a $20 cost produces a $30 price, but the resulting margin is only 33.3%, not 50%.
Omitting Inbound Landed Freight: Failing to include factory-to-warehouse transport in your base cost understates unit COGS.

Frequently Asked Questions

How do I calculate profit margin from cost and selling price?

Subtract your product cost from your selling price to get dollar profit. Then divide dollar profit by the selling price and multiply by 100.

What is the difference between margin and markup?

Profit margin measures profit as a percentage of selling price, whereas markup measures profit as a percentage of cost.

Can profit margin ever be greater than 100%?

No. Profit margin is calculated as a fraction of selling price. Since cost cannot be less than zero, profit margin maxes out at 100%. Markup, however, can go as high as infinity.

What is a good gross margin for physical products?

For direct-to-consumer physical products, a gross margin of 50% to 70% is standard to absorb shipping, marketing, and marketplace channel fees.

Last Updated: July 2026

Financial Disclaimer: MerchSites tools and guides provide estimates for product pricing, margin analysis, and expense planning. All calculations are performed locally in your web browser. Content is for educational purposes and does not constitute formal tax, legal, or accounting advice.