Gross profit is a measure of a company's profitability that excludes the costs of producing and selling its products or services. It is calculated by subtracting a company's cost of goods sold (COGS) from its total revenue. Gross profit is also known as gross margin, and it is expressed as a percentage of total revenue.