A duplex is a type of housing configuration that allows for two separate residential units within one structure. The two units are typically connected by a common wall, but the floor plan can vary. Each unit has its own separate entrance, and in some cases, they may have separate garages and outdoor spaces as well. Duplexes can be stacked vertically or side-by-side, and they are considered a form of multi-family home since they provide two separate living spaces
. In urban planning, the term duplex is used more specifically to refer to a building with one unit built above another
. In real estate, a duplex is a small type of multifamily building with two connected dwellings that have separate entrances on a single property