Calculate a retail or selling price by dividing the cost by 1 minus the profit margin percentage. If a new product costs $70 and you want to keep the 40 percent profit margin, divide the $70 by 1 minus 40 percent – 0.40 in decimal. The $70 divided by 0.60 produces a price of $116.67.