Skip to content
Mycelgrid

Pricing and gross profit math

Margin Calculator

Calculate gross margin, markup, selling price, cost, and gross profit from the values you know. The formula stays visible with every valid result.

Private by design. Entered values and results stay in this browser page. The calculator does not upload your pricing data or maintain a calculation history.

More ways to solve

Calculate margin and markup from cost and selling price.

Quantity scales revenue, cost, and gross profit. It does not change margin or markup.

What is gross margin?

(Selling price − Cost) ÷ Selling price × 100.

What is markup?

(Selling price − Cost) ÷ Cost × 100.

Margin and markup are not the same percentage

Cost 80 and price 100 gives 20% margin and 25% markup.

Price rounding can move the actual margin

The app recomputes actual margin after target-price rounding.

Undefined is different from zero

Zero selling price makes margin undefined; zero cost makes markup undefined. Infinity is never substituted.

What belongs in Cost?

The app uses the Cost you enter and does not automatically add tax, shipping, fees, labor, overhead, advertising, or returns.

Keep this app closeFavorite it, install a direct launcher, or share the live Mycelgrid app.

Install Margin Calculator

  1. 1. Open your browser menu.
  2. 2. Choose Install App or Add to Home Screen.
  3. 3. Confirm the installation.

Internet access is required.

Keep this calculation open?

Margin values in this tab are not automatically saved.