The cooking times below are for cooking a whole turkey at an oven temperature of 325 degrees F to 350 degrees F (160 degrees C to 180 degrees C), using regular heat, not convection. Remember, if you frequently open the oven to baste, cooking time may be extended.
Also remember that turkeys, even if the same weight, are never exactly the same. Some have thicker breasts, others longer legs, and that can affect cooking time. That's why it's important to check for doneness about one hour before the end of the recommended roasting time.
The turkey is done when an instant-read meat thermometer inserted deep into the inner thigh, not touching the bone, reads 170 degrees F (77 degrees C) for an unstuffed turkey, or 180 degrees F (82 degrees C) for a stuffed one.