Surprise is a key element. For example, if in a spooky old house, a character thinks they are being haunted by a ghost, but it turns out to be their cat knocking things over in a clumsy way. The unexpected nature makes it both scary at first and then funny.
Misdirection can also do the trick. In a story, if the narrator leads you to believe there is a dangerous monster lurking in the forest, but then reveals it's just a friendly, albeit very large, deer with big antlers that scared the characters by accident. This creates that funny but scary feel. The characters' over - the - top reactions to what they think is a threat can also add to the humor and scariness.
The use of contrast between the normal and the abnormal is important. Say, in a seemingly ordinary town, people start to notice that all the clocks stop at the same time every night. This is scary as it's an unexplained and strange phenomenon. But then it's discovered that it's just a naughty kid with a magnet going around to all the clocks. The normalcy of a kid's prank against the backdrop of the spooky event makes it funny and scary.
Surprise is a big element. For example, if a character is expecting a ghost but it turns out to be a prankster friend in a white sheet. Another element is the use of over - the - top reactions. If a person screams like crazy at a little mouse thinking it's a monster, that's both scary (for the person in the story) and funny for the reader. Also, the setting can contribute. A spooky old castle that has a bunch of goofy - looking bats flying around can be both scary and funny.
One element is when the ghost has comical habits. For example, if a ghost is always losing its head and then running around looking for it in a panicked yet funny way. Another is when the ghost is more interested in silly human things like fashion or dancing. A ghost that tries to learn the latest dance moves but keeps floating off in the wrong direction can be really funny.
Mismatched situations play a big part. Picture a big, tough - looking guy being terrified of a tiny spider. It's scary for him but hilarious for others. Also, the use of spooky settings like a dark forest or an old attic, and then having something really silly happen there, like a group of kids finding a lost puppy instead of a monster, makes for a great scary - funny story.
Exaggeration also plays a role. If a character is overly paranoid about every little sound in an old mansion thinking it's a ghost, and then the 'ghost' turns out to be a mouse that makes really loud noises. The extreme overreaction of the character to a normal situation is both scary in the moment and funny when the truth is known.
Surprise is key. For example, you can have a seemingly cute animal turn out to be something more menacing in a funny way, like a bunny that starts talking in a deep, spooky voice. Another element is the setting. A dark, isolated forest or an old, creaky campsite can add both scariness and a touch of humor when things go wrong there.
Surprise is a key element. For example, if a ghost is supposed to be really scary but then it trips over a broomstick, that's unexpected and funny. It plays with the audience's expectations of horror and then throws in a humorous twist.
The contrast between fear and humor. When a situation is really spooky and then suddenly becomes comical, it creates a unique feeling. For example, a ghost that is trying to be menacing but keeps tripping over its own spectral robes. This contrast keeps the reader interested.
One important element is the build - up of tension. A story can create a really scary atmosphere, like in a haunted house setting. The characters are trembling with fear. Then, suddenly, the reason for all the spooky things is something really silly, like a mouse knocking things over. Also, the use of character reactions can make it both scary and funny. If a character overreacts to a normal noise in a really comical way at first, and then finds out it's harmless in the end, it gives that scary - but - funny effect.
Well, the contrast between the expected and the unexpected can make a ghost story both scary and funny. We expect ghosts to be all - powerful and terrifying, but if they are shown to be afraid of something ridiculous like a cute little kitten, it creates a funny situation within the scary context. The way the characters react to the ghost also matters. If a character is so nonchalant about the presence of a very scary - looking ghost that they start making jokes about its appearance or its spooky behavior, it makes the story funny while still maintaining the scariness of the ghost. And then there's the setting. A haunted place is usually expected to be super - spooky, but if there are some odd or comical elements in that setting, like a disco ball in a haunted castle that the ghost accidentally hits and starts dancing to the music, it adds both elements.
A key element is the build-up of tension and suspense. When you don't know what's coming next, it keeps you on the edge of your seat.