Creating a functional and efficient NPC housing system is a fundamental aspect of progressing in Terraria, transforming a simple shelter into a bustling community. The game's artificial intelligence governs these non-player characters based on specific environmental conditions, and understanding these rules is the difference between a cramped refugee camp and a properly organized town. This guide details the exact room requirements needed to convince a wandering traveler to move in permanently.
What Constitutes a Valid NPC House?
At its core, an NPC room is defined by three critical components: walls, a light source, and a flat surface area. Walls act as the primary barrier against the dangers of the world, with the game requiring a complete enclosure that excludes the sky, the ocean, and the void. A light source, such as a torch or glowstick, is necessary to satisfy the "comfort" of the inhabitant, allowing them to function without fear of the dark. Finally, the room must contain a flat surface area, which includes platforms, tables, or any solid block that provides a space for essential furniture like chairs and tables.
The 3x3 Minimum Standard
The most basic unit for Terraria NPC housing is a 3 by 3 tile interior space. This small square provides enough room for a single resident to live comfortably, featuring space for a light source, a sitting area, and a door for entry and exit. While this is the minimum threshold, experienced players often utilize larger designs to accommodate multiple NPCs or to create aesthetically pleasing homes. Ensuring this foundational space is free of obstructions is the first step in the building process.

| Requirement | Description |
| Walls | Complete enclosure preventing enemies and background walls from spawning inside. |
| Light Level | At least one light source present to prevent darkness debuffs. |
| Comfort | A flat surface area (platform or furniture) for the NPC to relax on. |
| Entrance | A door or accessible opening that is at least 3 blocks tall and 1 block wide. |
The Role of Doors and Accessibility
Doors are more than just entryways; they are a crucial part of the validation process for an NPC residence. The game requires that a door is present to allow the NPC to pathfind into the house, and it must be of a sufficient size. A door needs to be at least three blocks tall and one block wide to register correctly. If an NPC is unable to enter a structure due to an improperly placed door or blocked entrance, the game will register the house as invalid, and the character will remain outdoors.
Advanced Space Requirements and Population Control
As your world expands and you collect more NPCs, the standard 3x3 house becomes insufficient. To increase the population cap and allow more characters to reside in your town, you must focus on increasing "housing" capacity. Each valid room, regardless of size, contributes exactly one house to the count. This means you can build sprawling villas or compact efficiency apartments; as long as the room meets the basic criteria of walls, light, and a flat surface, it counts toward your total population limit.
Biome and Style Restrictions
Certain NPCs are particular about their living environment and will refuse to move into generic housing. For example, the Archer requires a house situated within the Forest biome, while the Wizard demands a block of Crimson or Corruption. Furthermore, thematic consistency matters; a player might build a Victorian-style mansion, but if it is constructed solely from standard wooden blocks, the Demon, Angel, and other special characters will reject it. Providing the correct backdrop blocks is essential for attracting these niche characters.

Troubleshooting Common Housing Errors
Even the most experienced builder encounters housing glitches. A common mistake is leaving a ceiling too low; the room must have at least two blocks of vertical clearance above the standing surface to register as valid. Additionally, background walls inside the structure can interfere with the validation algorithm, causing the game to reject the house. If an NPC refuses to move in, check for "leaks" in your walls, ensure the room is not too cramped, and verify that there are no invasive plants like Actuators or Cacti touching the interior space.























