Combine all ingredients in the pressure cooker: Do not fill the pressure cooker more than half full.
Secure the lid: Make sure the pressure regulator valve is closed. (On an Instant Pot, this means it will be set to the the "sealing" position.)
Cook the beans:
Here are the cooking times for unsoaked beans in the Instant Pot. Cooking times will be similar for other electric pressure cookers; cooking time will be slightly less for stovetop pressure cookers. Double-check the manual that came with your pressure cooker for more exact cooking times:
Cook beans at high pressure for the time recommended above. The pressure cooker will take 15 to 20 minutes to come to full pressure before cooking begins.
Let the pressure release:
Once cooking is complete, you can let the pressure release naturally on its own, which takes about 20 to 30 minutes, or you can do a "quick release" by opening the pressure valve on the top of the pressure cooker. If doing a rapid release, be careful because the bean liquid sometimes foams into the valve.
I recommend letting the pressure release naturally for as long as you're able before the beans are needed. This helps the beans retain their shape and avoids the bean liquid foaming.
What to do if your beans aren't quite done: Put the lid back on the pressure cooker and make sure the release valve is set back to "sealing." Cook at high pressure for another 5 to 10 minutes (depending on if you think your beans need just a little more time or a little more time to finish). The pot will quickly come back up to pressure because the contents are already hot. Check your beans after the extra cooking time and continue cooking for longer if needed.
Using and storing your beans: The beans can be strained and used right away, or cooled and stored in their cooking liquid. They will keep for up to a week refrigerated or up to 3 months in the freezer.