Pour the 1 lb bag of dry beans onto a counter and sort through. Discard obvious broken pieces and any rocks, as well as any dark beans.
Rinse the dry beans and place them in the Instant Pot.
Finely chop the onion and the garlic cloves and then add them to the Instant Pot.
Add in the salt and pepper and stir to combine.
Close and lock the lid into place and turn the steam release valve to the sealing position. Set the cook time to 30 minutes using the Manual button at high pressure.
The pressure cooker will take about 10-15 minutes to reach the pressure and then the cook time will begin counting down.
When the cook time ends, allow the pressure to naturally release (let it sit there) for 15 more minutes.
Then, turn the steam release valve to the venting position to make sure all the pressure has been released.
Once the pin has dropped, open the lid. Stir and serve immediately.