Skip to main content
ddevtools
ToolsBusinessGitHub (opens in new tab)
ddevtools
All ToolsBusiness ToolsGitHub (opens in new tab)
ddevtools

Free developer utilities that run entirely in your browser. Fast, private, and always free.

Developer Tools

  • JSON Formatter
  • Base64 Encoder
  • UUID Generator
  • Hash Generator
  • URL Encoder
  • Timestamp

Business Tools

  • Margin Calculator
  • Meeting Cost
  • Salary Converter
  • Date Calculator

Built with care. Your data stays in your browser.

  1. Home
  2. Margin Calculator

Margin & Markup Calculator

Calculate profit margins, markups, and pricing

$50.00
Profit
50.00%
Margin
100.00%
Markup

Margin vs Markup

Margin = (Price - Cost) / Price × 100

Markup = (Price - Cost) / Cost × 100

Example: Cost $50, Price $100 → Margin 50%, Markup 100%

Related Tools

  • Salary Converter - calculate hourly rates
  • Meeting Cost Calculator - analyze business costs
  • Number Base Converter - work with percentages

How to Use Margin Calculator

  1. Enter cost and revenue

    Input your cost price and selling price or revenue.

  2. View margin calculations

    See gross margin, markup percentage, and profit calculated.

  3. Adjust values

    Modify any value to see how it affects your margins.

Frequently Asked Questions

Is the Margin Calculator free to use?
Yes, the Margin Calculator is completely free with no limitations. Calculate profit margins, markups, and pricing as often as you need without registration.
Is my financial data private?
Yes, all calculations happen locally in your browser. Your costs, prices, and margins are never sent to any server, keeping your business data confidential.
What is the difference between margin and markup?
Margin is profit as a percentage of selling price (profit/price). Markup is profit as a percentage of cost (profit/cost). A 50% markup equals a 33.3% margin. The tool converts between both instantly.
Can I calculate prices from target margins?
Yes, you can enter your cost and desired margin to calculate the required selling price. You can also enter cost and price to see the resulting margin, or price and margin to find the implied cost.