Gross profit is calculated as revenue minus the cost of goods sold, representing the profit a company makes after deducting the direct costs associated with producing its products. It is not simply revenue before taxes, which relates to pre-tax income or earnings.