Utility is the tendency of an object to produce happiness or prevent unhappiness for an individual or a community. Depending on the circumstances, you may think of “happiness” as advantage, benefit, good, or pleasure, and “unhappiness” as disadvantage, cost, evil, or pain.