A gross margin calculator can do a lot of work: Find the revenue, divide gross profit, and express results as a percentage to calculate margins.