information:highlighting
Configuration of the system

Another classification is based on the distance between the stars, relative to their sizes:

Detached binaries are binary stars where each component is within its Roche lobe, i.e. the area where the gravitational pull of the star itself is larger than that of the other component. While on the main sequence the stars have no major effect on each other, and essentially evolve separately. Most binaries belong to this class.

Semidetached binary stars are binary stars where one of the components fills the binary star's Roche lobe and the other does not. Gas from the surface of the Roche-lobe-filling component (donor) is transferred to the other, accreting star. The mass transfer dominates the evolution of the system. In many cases, the inflowing gas forms an accretion disc around the accretor.

A contact binary is a type of binary star in which both components of the binary fill their Roche lobes. The uppermost part of the stellar atmospheres forms a common envelope that surrounds both stars. As the friction of the envelope brakes the orbital motion, the stars may eventually merge. W Ursae Majoris is an example.