Building a house in Terraria is one of the first tasks any player undertakes. While it seems as simple as putting up four walls and a roof, the game operates on a strict set of hidden mechanical requirements. If a single tile is misplaced, you will be met with the frustrating "This is not valid housing" message. Beyond basic validity, the 1.4 update introduced the Happiness system, which forces players to think strategically about where and with whom their NPCs live.

Core Requirements for a Valid NPC House

For a structure to be recognized as a house by the Terraria engine, it must meet several physical criteria. These rules apply regardless of the materials used, whether you are building a wooden shack or a palace made of Martian Conduit Plating.

Total Interior Space and Dimensions

A house must have a total area between 60 and 750 tiles, including the enclosing walls, ceiling, and floor. In practical terms, this means a standard rectangular house of 9 blocks wide by 7 blocks high (exterior) is a safe and common choice.

If you prefer a more compact "prison-style" design for efficiency, the minimum interior dimensions can be as small as 3 blocks wide by 10 blocks high. However, our testing shows that ultra-small houses often struggle with the "Home Tile" requirement (discussed below), so sticking to a 6x6 or 10x6 interior is recommended for beginners.

The Enclosure Rule

The house must be fully enclosed. This includes:

  • Solid Blocks or Platforms: The perimeter can be made of standard blocks, but it can also incorporate platforms (which act as doors or floors) and trapdoors.
  • Background Walls: This is where most players fail. You must place background walls manually. Naturally occurring dirt walls, cave walls, or dungeon walls do not count. There is one exception: natural walls found in Floating Island structures or Living Trees often work.
  • Windows: You can leave small holes in the background walls for aesthetic purposes (simulating windows), but these gaps cannot exceed 4x4 tiles in size. Larger gaps will invalidate the room.

Required Furniture and Light

Every house requires three specific items to be functional:

  1. A Light Source: This can be a torch, a chandelier, a lantern, or even a fireplace. As long as it emits light and is placed inside the room, it counts.
  2. A Flat Surface Item: A table, a workbench, a bathtub, or even a dresser works. In early gameplay, the workbench is the most efficient choice as it also serves as a crafting station.
  3. A Comfort Item: This is usually a chair. However, you can also use a bed, a toilet, a bench, or a throne.

The Entrance

At least one "entrance" is required. While most players use a standard Wooden Door, a trapdoor in the ceiling or a platform in the floor also counts as a valid entrance.

The Hidden Mechanic: The Home Tile Logic

The game doesn't just check if the room is a box with a chair; it checks where the NPC will actually stand. This is called the Home Tile calculation.

For a house to be valid, there must be at least one solid block (not a platform) for the NPC to stand on at night. This block cannot be directly adjacent to the side walls. If you make your entire floor out of platforms to allow for easy movement between floors, the house will be invalid. You must include at least one solid block in the floor layout.

Furthermore, certain furniture items can "block" the Home Tile. For example, if you fill a tiny 3x10 room with too many decorative items, the NPC might not have a clear spot to stand, leading to the "This is not valid housing" error even if all other requirements are met.

Environmental Factors and the "Evil Score"

Even a perfectly built house can become invalid if the environment changes. This is primarily governed by the Evil Score, which measures the proximity of Corruption or Crimson.

  • The 250-Tile Rule: If there are too many Corruption or Crimson blocks (roughly 250 tiles) within the immediate vicinity of a house, it becomes uninhabitable. NPCs will move out, and the housing query will state that the house is "corrupted."
  • The Hallow Exception: Unlike the evil biomes, the Hallow does not invalidate housing. In fact, many NPCs (like the Wizard or Party Girl) prefer living in the Hallow.
  • The Truffle Requirement: The Truffle NPC is unique. He will only move into a house located in a Surface Mushroom Biome. You must manually create this biome by planting Mushroom Grass Seeds on mud blocks above the "zero" depth level.

Maximizing NPC Happiness and Pylons

Since the 1.4 Journey's End update, housing is no longer just about giving NPCs a roof. The Happiness system affects the prices NPCs charge for items and the prices they pay for your loot.

Biome Preferences

Each NPC has a favorite biome where they feel most comfortable.

  • Forest: Guide, Merchant, Zoologist, Golfer.
  • Desert: Dye Trader, Arms Dealer, Steampunker.
  • Jungle: Dryad, Painter, Witch Doctor.
  • Snow: Tax Collector, Cyborg, Mechanic.
  • Ocean: Angler, Stylist, Pirate.
  • Underground: Goblin Tinkerer, Demolitionist, Clothier.

Neighbor Preferences

Living near specific NPCs also boosts or reduces happiness. For instance, the Arms Dealer is much happier living near the Nurse, while the Goblin Tinkerer prefers being near the Mechanic. Conversely, the Goblin Tinkerer hates living near the Fashionist (Stylist).

The Reward: Pylons

If an NPC is happy enough (usually by living in their preferred biome with at least one neighbor they like), they will sell a Pylon. Pylons allow for instant teleportation between biomes, making world navigation significantly faster. To use a Pylon network, you need at least two NPCs living near each Pylon.

Essential NPC Spawn Conditions

Beyond building a house, most NPCs require you to reach a specific milestone in the game before they will appear.

NPC Special Condition Preferred Biome
Guide Spawns with the world. Forest
Merchant Have 50 Silver Coins in your inventory. Forest
Nurse Have more than 100 max health. Hallow
Demolitionist Have an explosive (bomb/grenade) in your inventory. Underground
Dryad Defeat a major boss (Eye of Cthulhu, Eater of Worlds, etc.). Jungle
Arms Dealer Have a gun or bullets in your inventory. Desert
Goblin Tinkerer Rescue him from the Underground after a Goblin Invasion. Underground
Mechanic Rescue her from the Dungeon. Snow
Wizard Find him in the Cavern layer after entering Hardmode. Hallow

Professional Building Strategies: Efficiency vs. Aesthetics

Depending on your playstyle, you might choose between different housing strategies.

The "NPC Prison" (Efficiency Focus)

For players who want to unlock Pylons and shops as quickly as possible, the NPC Prison is the go-to method. These are 3x10 interior rooms stacked on top of each other. By using a platform as part of the floor, you can interact with the NPC through the floor without opening doors. While efficient, these buildings are often considered "ugly" and can be difficult to defend during events like a Blood Moon or Solar Eclipse.

The Biome Hub (Strategy Focus)

A more balanced approach is building small "hubs" of 2-3 houses in every biome. This maximizes the Happiness system and allows you to place Pylons. In our experience, building a small lodge in the Snow biome for the Mechanic and Goblin Tinkerer is one of the best early-Hardmode investments you can make, as it lowers the cost of reforging your gear.

Aesthetic Builds

For players who enjoy the creative side of Terraria, housing is an opportunity to use the game's hundreds of block types. Using "Echo Coating" (introduced in 1.4.4) can even allow you to create invisible houses or furniture, though the NPC will still require the basic mechanical components to reside there.

Troubleshooting: Why is My House Invalid?

If the game says your house is unsuitable, check these common issues:

  1. Unsafe Walls: Did you use the walls that were already there in the cave? Break them and replace them with walls you crafted at a workbench.
  2. Missing a Tile: Sometimes a single background wall tile is missing behind a piece of furniture or in a corner. Use the "Smart Cursor" while holding walls to fill in gaps.
  3. The Chest Conflict: If a chest is open or placed in a way that obstructs the Home Tile, the house may become invalid.
  4. Corruption Encroachment: If you are in Hardmode, Corruption spreads fast. A house that worked yesterday might be "too corrupted" today. Check the area below your floor for purple or red ice/stone.
  5. The Stink Bug Blocker: In the latest versions of the game, placing a Stink Bug Blocker or a Ghostly Stink Bug Blocker will intentionally prevent NPCs from moving into a room. Ensure you haven't accidentally placed one of these decorative items.

Summary of Valid Housing Requirements

To ensure your Terraria NPC house is always valid, follow this checklist:

  • Dimensions: At least 60 tiles total area, typically 9x7 or 10x6.
  • Walls: Fully enclosed with player-placed background walls.
  • Furniture: One table (or workbench), one chair (or bed/toilet), and one light source.
  • Entrance: A door, trapdoor, or platform.
  • Floor: At least one solid block for the NPC to stand on that isn't a platform or directly against a wall.
  • Biomes: Ensure the house is not within 250 blocks of Corruption or Crimson.

By mastering these simple rules and understanding the happiness system, you can turn your Terraria world into a highly efficient, well-connected network that supports your progression from the first night through the Moon Lord.

FAQ

Q: Can I use platforms for the entire floor of an NPC house? A: No. While platforms can be part of the floor, the NPC requires at least one solid block to serve as their "Home Tile" where they stand at night.

Q: How do I move an NPC to a specific house? A: Open your inventory and click the "Housing" icon on the right. Select the NPC's portrait and then click inside the house you want them to occupy. A gold-bordered flag will appear.

Q: Why did my NPC move out suddenly? A: This usually happens because of Corruption/Crimson spread or because a part of the house (like a wall or door) was destroyed by an explosion or a boss.

Q: Do NPCs need to be able to reach their furniture? A: No. As long as the items are inside the room, the NPC does not need a clear walking path to them. They can even be blocked by other blocks.

Q: Can multiple NPCs live in one large room? A: No. Every NPC requires their own individual house. A "house" is defined by its enclosing frame and background walls. If you have a large room, you must divide it with walls or platforms to create separate valid houses.