Husk the corn and remove any silk. You can leave the corn whole or cut it into halves if your Instant Pot has limited space.
Pour 1 cup of water into the Instant Pot and place the trivet or steaming rack inside.
Arrange the corn on top of the trivet, stacking if necessary. Ensure the corn is not submerged in water.
Close the Instant Pot lid and set the vent to Sealing. Select the Manual or Pressure Cook function and set the timer for 4 minutes.
Once the cooking time is complete, allow for a quick release of pressure by turning the vent to Venting to release the steam.
Carefully open the lid and use tongs to remove the corn, as it will be hot.
Season with salt to taste and serve with butter, if desired.
For added flavor, you can experiment with seasonings such as garlic powder, paprika, or parmesan cheese.