There is no law requiring a two-bedroom apartment. You should, however, ensure that the child will enjoy an appropriate and suitable living environment within your new apartment. That's usually easiest when the child (or children) has her own bedroom, although people who cannot afford that option can be surprisingly creative.

