Pour dry navy beans into a fine mesh strainer. Rinse under cold water and remove any foreign debris.
Add dry beans, water, and salt, if using, to the instant pot.
Set the valve to the “sealing” position. Pressure cook on high pressure for 25 minutes. When the timer beeps, carefully switch the valve to the “venting” position and manually release the pressure.
Strain the beans to drain out the remaining water.
Notes
For soaked beans: Place the beans in a large bowl and cover with 3 inches of water for 8 to 12 hours, or overnight. Strain before cooking. Follow step 2 and 3, but instead of cooking for 25 minutes, cook for 10 minutes. Follow step 4.