Formula Used
Profit margin = [(Revenue − Cost) ÷ Revenue] × 100
How the formula is applied
The calculation links Revenue ($) and Cost ($) to profit margin. Profit equals revenue minus the selected costs; margin divides that profit by revenue. A loss produces a negative margin rather than a positive markup.