To make perfectly al dente pasta that is slightly firm to the bite, boil spaghetti for two minutes less than the cooking time on the package. Check for doneness. It shouldn’t be mushy, crunchy, or taste raw. If it’s too firm, boil for another minute. If you like your pasta softer, boil it for a couple of minutes longer. If the pasta will be simmering with sauce, remove when it’s still firm so it can finish cooking in the sauce without turning to mush.