Cost of goods sold is an expense charged against sales to work out a gross profit (see definition below). So, for example, we may have sold 100 units this year at $4 each, and these 100 units that we sold cost us $3 each originally.