If a hard boiled egg floats is it bad?

Yes, a hard-boiled egg that floats is likely bad. Here's why:

* Air Pockets: As an egg ages, the yolk breaks down and releases gases, creating air pockets inside the shell. These air pockets increase the egg's buoyancy, making it float.

* Spoilage: The presence of air pockets is a sign that the egg is aging and potentially spoiling. Bacteria can thrive in these air pockets, making the egg unsafe to eat.

However, it's not always a guarantee of spoilage. If the egg is very fresh, it might float due to a larger air pocket at the blunt end of the egg, which is normal.

Here's a better test to determine if an egg is bad:

1. Smell it: A spoiled egg will have a strong, unpleasant sulfurous smell.

2. Crack it open: Look at the yolk and white. A fresh egg will have a firm, bright yellow yolk and a clear white. A spoiled egg will have a watery, runny white and a green or gray yolk.

If you're unsure, it's always best to err on the side of caution and discard the egg.