What this calculator does
Calculate selling price, gross profit, and markup from cost and a target gross margin.
How it works
The calculator evaluates selling price = cost ÷ (1 − gross margin); profit = price − cost. Inputs are checked before calculation, and invalid values such as zero denominators or out-of-range selections produce a clear error instead of a misleading result.
Input query strings and outputs
Use an input name in this page’s URL as ?name=value, and join additional inputs with &. Portable shared links may instead use the compact ?ac= state parameter.
Input query strings
2-
?cost=CostMoney · Required · Default: 80
-
?grossMargin=Target gross marginPercentage · Required · Default: 20
Outputs
4-
sellingPriceSelling price / revenueCurrency · Primary output
-
grossProfitGross profitCurrency
-
markupPercentMarkup on costPercentage
-
costPercentOfPriceCost as % of pricePercentage
Inputs and results
The inputs are Cost, Target gross margin. Results include Selling price / revenue, Gross profit, Markup on cost, Cost as % of price.