To achieve al dente pasta, cook spaghetti for 1-2 minutes less than the package instructions. It should still have a slight bite to it when you taste it.