Opposite the warm house, the terrifying house is usually a house that has gone over the line from cocoon to prison. In the best stories of this kind, the house is terrifying because it is an outgrowth of the great weakness and need of the character. This house is the hero's biggest fear made manifest. In the extreme, the character's mind has rotted in some way, and the house too is in ruins. But it is no less powerful a prison.
In Great Expectations, Miss Havisham is a slave in her own run-down mansion because she has chosen to martyr herself on the altar of unrequited love. Her mind has grown sick with bitterness; her house is a perfect picture of her mind. In Wuthering Heights, the house is a horrible prison because Cathy gave up true love there and because Heathcliff's bitterness has made him commit awful acts against its inhabitants in her name.
Horror stories place such strong emphasis on the haunted house that it is one of the unique story beats of the form. Structurally, the terrifying or haunted house represents the power the past holds over the present. The house itself becomes a weapon of revenge for the sins committed by the fathers and mothers. In such stories, the house doesn't have to be a decrepit, creaking mansion with slamming doors, moving walls, and secret, dark passageways. It can be the simple, suburban houses of Poltergeist and A Nightmare on Elm Street or the grand hotel on the mountaintop in The Shining. On this mountaintop, the seclusion and the hotel's past sins don't lead the hero to think great thoughts; they drive him mad.
When the terrifying house is a grand Gothic hulk, an aristocratic family often inhabits it. The inhabitants have lived off the work of others, who typically dwell in the valley below, simply because of their birth. The house is either too empty for its size, which implies that there is no life in the structure, or it is stuffed with expensive but out-of-date furnishings that oppress by their sheer numbers. In these stories, the house feeds on its parasitic inhabitants just as they feed on others. Eventually, the family falls and, when the story is taken to the extreme, the house burns, devours them, or collapses on them. Examples are "The Fall of the House of Usher" and other stories by Poe, Rebecca, Jane Eyre, Dracula, The Innocents, The Amityville Horror, Sunset Boulevard, Frankenstein, Long Day's Journey into Night, and stories by Chekhov and Strindberg.
In more modern stories, the terrifying house is a prison because it is not big and diverse. It is small and cramped, with thin walls or no walls at all. The family is jammed in, so there is no community, no separate, cozy corners where each person has the space to become who he uniquely should be. In these houses, the family, as the basic unit of drama, is the unit of never-ending conflict. The house is terrifying because it is a pressure cooker, and with no escape for its members, the pressure cooker explodes. Examples are Death of a Salesman, American Beauty, A Streetcar Named Desire, Who's Afraid of Virginia Woolf?, Long Day's Journey into Night, The Glass Menagerie, Carrie, Psycho, and The Sixth Sense.