Add the spaghetti to the boiling water and cook following the box’s instructions. Stop cooking a little under 2 minutes before they’re ready. Before draining the pasta, take about 1¾ of the pasta water from the pot, using the same heatproof measuring cup. Using the same heatproof measuring cup, get about 1¾ of the pasta water from the pot before draining the pasta.