According to Ender's Game, Ender was six years old.
According to Ender's Shadow, Ender was five.
You can choose which answer you want to, but I go with "five" because Orson Scott Card says in both of his series THE SHADOW COMPLEX and the original ENDER SERIES that Ender was five, so Orson Scott Card must have corrected his mistake early on.