The answer is precise: Harry Potter was 11 years old — specifically, he had just turned 11 on July 31, 1991.
On his eleventh birthday, July 31, 1991, Rubeus Hagrid arrives at the hut on the rock where the Dursleys have fled to escape the flood of Hogwarts letters. He hands Harry his acceptance letter and delivers the iconic line: "You're a wizard, Harry."
If the question means informing another wizard ("I'm a wizard"), that also happens at 11 on the train. If it means telling a Muggle, Harry never voluntarily does so in the series — the Statute of Secrecy forbids it.