Turn a cost and markup percentage into a selling price and the margin that price implies.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
Markup amount equals cost × markup percentage ÷ 100, and selling price adds that amount to cost. Margin is markup amount ÷ selling price × 100, so its denominator is revenue rather than cost.
Cost: 25 Markup percent: 40
Cost: $25.00 Markup: 40% (+$10.00) Selling Price: $35.00 Profit Margin: 28.57%
Retailers price from wholesale cost, craft sellers check gross margin, and quotes compare cost-plus percentages with selling prices.