Homemade brown sugar can last indefinitely if stored properly. Keep it in an airtight container in a cool, dry place to prevent it from hardening. If it does harden, you can soften it by placing a slice of bread or a damp paper towel in the container overnight.