I like to take my salmon out of the oven when it reaches 135°F. But to be safe, the FDA's answer to how long to cook salmon is to be sure that it reaches an internal temperature of 145°F (measured with a cooking thermometer in the thickest part of the filet).