Gross profit in a trading account can be calculated by subtracting the cost of goods sold from the net sales.
Gross profit = Net Sales – Cost of goods sold.