With multiple states is federal income deductions split based on where you work or you live?

With multiple states is federal income split based on where you work or where you live?