It depends on your age and the type of IRA.
If it is a Roth you can take out the amount you put in no tax no penalty any age. If you are 59&1/2 plus no penalty, no tax on Roth.
If you are over 70&1/2 you must take a minimum distribution from a traditional.
There are other hardship provisions as well.