The key to cooking a pork tenderloin without drying it out is to not overcook it. Pork tenderloin is best cooked to an internal temperature of 145 degrees Fahrenheit. To ensure that your pork tenderloin cooks evenly, use a meat thermometer and insert it into the thickest part of the pork loin. Once it reaches 145 degrees Fahrenheit, remove it from the oven.