First, determine the cook time for the pasta you are using. See the notes below to determine the right time.
Combine pasta, water, and salt in the bowl of an Instant Pot. Give everything a stir. (See note below if cooking long, straight pasta like spaghetti, fettuccini, or linguini.)
Close and lock the lid.
Set the vent to “Sealing”.
Pressure cook on high for the time determined in Step #1.
Leave the pasta on natural release for exactly 5 minutes. (Note: Be very careful not to let it sit for any longer or the pasta will overcook.)
Use manual release to release any remaining pressure.
Open the lid and give the pasta a good stir, 20 to 30 times. (This will get rid of any dry spots that remained where the pasta was sticking out of the water during cooking. If adding sauce, stir it in at this point.)
Return the lid to the top of the pressure cooker (no need to lock it just set it on top) and leave the pasta for 5-10 minutes more. (Note: This step is the most important because the pasta will continue to absorb any remaining liquid and continue to cook just a bit in the residual heat of the machine. This is the key to pasta that is cooked, but not overcooked.)