I am thinking of withdrawing 10k from my IRA to build a home. Is the penalty exception for the 10% for gross or net of the 10k withdrawn from the IRA?

I want to make sure I withhold enough to cover federal taxes and didn't know if I could get the full 10k and then add the federal tax or is the 10k the maximum including the taxes I need.