It depends which era of Sonic you mean. The classic-era Miles "Tails" Prower is usually listed as four and a half years old, while the modern-era Tails is given as eight.
Either way he is the youngest of Sonic's regular allies, which fits his role as the enthusiastic sidekick with a knack for machinery.