Does a Split Party Gain XP Evenly?

I’m running a campaign with six player characters. Since it’s a larger group, they occasionally split up. During these times, individual groups have gotten into encounters and been awarded XP.

My question is, does this XP get split evenly among the group present at the encounter or does the entire party, including the non-present group, receive XP evenly across the board?