You’ve probably heard that hard-boiled eggs float. That’s partially true, but it’s not your most reliable move.
Old eggs float because they’ve lost moisture and developed a bigger air pocket. A truly fresh egg sinks—whether it’s raw or cooked.
So if you drop an egg in water and it floats, it’s probably old, not necessarily cooked. Use this test for freshness, not doneness.
How Do You Know When A Boiled Egg Is Ready at Jessica Fischer blog