Browse all tools

    Business calculations

    Calculate Gross Margin and Markup

    Enter a unit cost and selling price to compare gross profit, gross margin, and markup. You can also calculate the selling price required for a target gross margin.

    Calculate margin

    Quick answer: Gross margin is gross profit divided by selling price; markup is gross profit divided by cost. This calculator shows both from the same cost and price, and can solve a target-margin price when the target is below 100%.

    Free, browser-based tool

    Compare gross margin and markup

    Use the same currency and per-unit basis for cost and selling price. The calculator does not include costs you leave out.

    How does the tool work?

    1. 1. Enter cost and selling price. Use the same currency and the same per-unit basis for both values.
    2. 2. Compare the percentages. Gross margin uses selling price as its denominator; markup uses cost.
    3. 3. Check a target margin. Enter a target below 100% to calculate the corresponding price before excluded costs.

    What formulas are used?

    Gross profit = selling price − cost. Gross margin = gross profit ÷ selling price × 100. Markup = gross profit ÷ cost × 100; markup is undefined when cost is zero.

    Target selling price = cost ÷ (1 − target margin as a decimal). This is a simple unit calculation and does not include fees, overhead, taxes, discounts, or other costs unless you include them in your cost input.

    Is the result net profit?

    No. The result is gross profit based only on the entered unit cost and selling price. It is not a complete business forecast, tax calculation, or recommendation about what to charge.

    Frequently asked questions

    What is the difference between margin and markup?

    Both use gross profit, but they divide by different amounts. Gross margin divides by selling price, while markup divides by cost.

    How do I calculate a target-margin price?

    Divide the cost by one minus the target margin expressed as a decimal. The target must be below 100%, and other costs must be included separately if you want them reflected.

    Does gross margin mean net profit?

    No. This calculator subtracts only the entered cost from the selling price. Operating expenses, taxes, payment fees, discounts, and other costs can change the final result.

    Does the calculator store my figures?

    No. The calculation runs in your browser and the values are not submitted to or stored by Bot Bridges. Use your own accounting records for financial reporting.

    Learn more

    Explore related workflows

    Discuss a workflow with Bot Bridges