Formulas
Margin = (price - unit cost) / price. Markup = (price - unit cost) / unit cost. Target-margin price = unit cost / (1 - target margin). These are the same formulas used across accounting and pricing guides, and every example on the site can be checked with a basic calculator.