Price elasticity of demand is calculated by dividing the percentage change in quantity demanded by the percentage change in price. If the result is greater than 1, demand is elastic; if it is less than 1, demand is inelastic.