He's 27 by the end of GT. The maths is fairly simple: Goten is seven when he's introduced, seventeen at the end of Dragon Ball Z ten years later, and GT picks up another ten years after that.