Took Money from 401k for Home Purchase

Hi,

 

I live in Pennsylvania and I pulled money out of my 401k to purchase a new home. Will I be taxed on that amount of money I pulled from my 401k? If so, what is the tax percentage (federal and state)?