# Price Calculator > Calculate selling price, gross profit, and markup from cost and a target gross margin. Page: https://askcalculators.com/calculator/price-calculator/ Definition: https://askcalculators.com/calculator/price-calculator/definition.json JSON Schema: https://askcalculators.com/calculator/price-calculator/schema.json Version: 1.0.0 Maintained by: AskCalculators (software project; not a credentialed reviewer) Qualified review: pending. Automated checks do not establish professional approval. Page status: Live Review status: Pending ## Use Open the calculator page and enter values. Query-string parameters can restore and bookmark a calculation. Example: https://askcalculators.com/calculator/price-calculator/?cost=80&grossMargin=20 ## Inputs - cost: Cost; type=money; required; default=80; min=0 - grossMargin: Target gross margin; type=percent; required; default=20; min=-1000; max=99.999 ## Outputs - sellingPrice: Selling price / revenue; format=currency; primary - grossProfit: Gross profit; format=currency - markupPercent: Markup on cost; format=percent - costPercentOfPrice: Cost as % of price; format=percent ## Formula selling price = cost ÷ (1 − gross margin); profit = price − cost ## Rules - Empty optional inputs are undefined, not zero. - Hidden conditional inputs are ignored. - Do not invent missing required inputs.