
Updated December 1, 2026. Applies to Valheim 1.0, hotfix 1.0.32. The structure HP, stake damage, Ballista ammo and creature numbers below come from the community Valheim Wiki pages for each piece, checked today. Patch quotes come from Iron Gate's patch 1.0.14 notes. We read every note through hotfix 1.0.32 (November 30, 2026), and nothing since 1.0.14 changed walls, stakes or the Ballista. The "hits to break" figures are our own arithmetic from those numbers.
A Valheim base gets attacked for two reasons. Raids drop enemies on top of it. Roaming monsters near you also go after anything that glows or crafts. The fix is not one perfect wall. You stack layers: terrain first, then walls with enough HP for your biome, then automated defenses that kill things while you're away. This guide covers each layer, with exact costs and a table showing which wall survives a Troll.
Quick answer: The strongest cheap defense in Valheim is terrain, because creatures can't dig through raised or lowered ground. A moat about 3 blocks deep stops nearly every walker, but Blobs and Fenrings jump down ledges and fliers ignore it. For walls, a Stakewall (4 Wood, 1,000 HP, no rain rot) beats wood walls (400 HP). Stone has 1,500 HP, a Dvergr Stakewall 2,000 and a Grausten 4x2 wall 3,000. A 0-star Troll punch breaks a wood wall in 2 hits, a Stakewall in 4 and stone in 7. The best automated defense is the Ballista (10 Black Metal, 10 Yggdrasil Wood, 3 Mechanical Springs): 40 missiles, 28 m, ±45°. It shoots players and tames unless you load a trophy to set a target. The Shield Generator blocks projectiles in a 30 m radius, burning 1 bone per 500 damage absorbed.
Why does your Valheim base get attacked?
Two systems send enemies at your buildings, and they need different defenses.
Raids. Every 46 minutes, the game has a 20% chance of starting a raid. Almost every raid needs a player within 40 m of at least 3 player base structures. The exception is "You are being hunted...", which can find you anywhere. Enemies spawn 40 to 80 m away and already know where you are. Our Valheim raids guide lists every raid and the boss kill that ends it.
Roaming aggro. The wiki notes that hostile creatures "are drawn to and hostile toward all light sources (excluding Jack-o-turnips) and crafting stations". They will try to break those when no player is around to fight. That is why a Troll can wander up to your gate while you're busy in the smelter room. Valheim only runs the area near a player, so this happens while you're home, not while you're logged off far away. Campfires, bonfires and both braziers are the exception: enemies don't attack them on sight.
Player base also works for you. Within its radius, creatures can't spawn at all, raid mobs included. The exception is physical spawners, such as Greydwarf nests and Draugr spawners, which keep spawning. The radius depends on the piece (wiki source):
| Player base radius | Pieces |
|---|---|
| 10 m | Hooded Lantern, Resin Candle, Sap Extractor, Dvergr Pole Lantern, Obliterator |
| 20 m | Bed, Portal, Ward, Ballista, Shield Generator, Smelter, Standing Wood Torch, Sconce |
| 25 m | Campfire, Iron Fire Pit |
| 30 m | Bonfire, Hearth |
| 20 m + 4 m per upgrade (max 36 m) | Workbench |
| 40 m | Artisan Table |
So the cheapest way to make a big area safe is to cover it with overlapping Workbenches or campfires. A ring around the walls only protects the middle if the circles overlap all the way in. Use the Workbench's visible 20 m build circle to check for gaps. Patch 1.0.14 went the same way: "PlayerBase effect on some build pieces has been increased to block enemies more."
Which wall material is best in Valheim?
Each building material has its own HP and resistances. Structures take bonus damage from damage types they're weak to, and creatures that smash bases mostly hit with Blunt, Chop and Pickaxe. Wood is weak to Chop. Stone, Grausten and marble are weak to Pickaxe.
To make HP easier to compare, the last column shows how many punches a 0-star Troll needs to break one full-HP piece. A Troll punch deals 60 Blunt, 100 Chop and 40 Pickaxe (wiki Troll page). We applied each material's resistances from its wiki page (weak = 1.5x, resistant = 0.5x, per the wiki damage page) and rounded up.
| Wall | Cost | Station | HP | Weak to | Troll punches to break |
|---|---|---|---|---|---|
| Wood Wall 2x2 | 2 Wood | Workbench | 400 | Chop | 2 |
| Stakewall 2x3 | 4 Wood | Workbench | 1,000 | Chop | 4 |
| Stone Wall 4x2 | 6 Stone | Stonecutter | 1,500 | Pickaxe | 7 |
| Black Marble 2x2x2 | 8 Black Marble | Stonecutter | 1,500 | Pickaxe | 7 |
| Dvergr Stakewall 2x3 | 8 Yggdrasil Wood, 8 Iron | Black Forge | 2,000 | none (resists Pickaxe) | 12 |
| Iron Gate | 4 Iron | Forge | 2,000 | none (resists Pickaxe) | 12 |
| Grausten Wall 4x2 | 12 Grausten | Stonecutter | 3,000 | Pickaxe | 14 |
Real fights take longer because Trolls miss and switch targets. They also take less time against starred Trolls: a 2-star Troll punches for 120 Blunt, 200 Chop and 80 Pickaxe, about double. Use the table as a ranking.
What to build at each stage:
- Meadows to Black Forest: Stakewall. It's 4 Wood for 1,000 HP. Unlike normal wood pieces, it never decays in rain, which makes it the right perimeter wall. A Blob can just barely jump a Stakewall on flat ground, so in the Swamp, put it on a raised bank.
- After the Swamp (iron unlocks the Stonecutter): Stone. You get 1,500 HP, resistance to Fire and Frost, and no rain decay.
- Mistlands: the Dvergr Stakewall doubles a normal Stakewall to 2,000 HP and, unlike normal wood, isn't weak to Chop. Blobs can still just barely jump it on flat ground. Black Marble has the same 1,500 HP as stone but is immune to Fire, Frost and Lightning. That's why players encase their Eitr Refinery in it.
- Ashlands onward: Grausten. The 4x2 wall has 3,000 HP and resists Slash, Pierce, Fire, Frost and Lightning. That's the most HP of any wall piece in the game.
For anything taller than a single row, check the stability colors in our Valheim building guide. Stone walls lose support quickly when stacked high.
Is a moat better than a wall in Valheim?
Usually, yes. The wiki building page is blunt about it: creatures cannot dig through terrain, so "terrain walls" are "effectively impenetrable" to them. A wall has HP. A height difference doesn't.
How to build one:
- Dig. Any pickaxe lowers the ground when you swing it at the dirt. See our Valheim pickaxe guide.
- Raise. The Hoe's Raise ground costs 2 Stone per use and needs a Workbench nearby. Pile the spoil on your side to make the drop deeper. Our Valheim hoe guide covers the controls.
- Aim for about 3 blocks of drop. The wiki calls a pit that deep "largely safe". Most creatures never jump down a ledge, so they mill around the far edge while you shoot them.
- Use a gap for the entrance. A gate can be smashed. A gap you jump over can't. If you need cart access, build a drawbridge from a gate with a floor attached.
What a moat doesn't stop:
- Blobs and Fenrings jump down ledges.
- Fliers: Drakes, Ghosts, Wraiths, Bats, Deathsquitos and Hexen ignore the ground. You need a roof or a Ballista for them.
- Ranged attackers: Troll boulders, Fuling Shaman fire and Gammeltroll logs fly over. That's what the Shield Generator is for.
The trade-off is performance. Every terrain edit is saved, and big moats around busy bases can add stutter. Wiki editors suggest the most FPS-friendly layout: put the base on a few raised terrain pillars rather than digging a full ring.
Do sharp stakes and traps work in Valheim?
Yes, as a supplement. Stakes are cheap damage (wiki Stakes table) and knockback that bounces enemies off your line while you hit them. They don't hold on their own: every hit costs them durability.
| Defense | Cost | Damage | Knockback | HP | Notes |
|---|---|---|---|---|---|
| Sharp Stakes | 6 Wood, 4 Corewood | 15 Pierce | 40 | 200 | Loses 34 HP per hit, so about 6 hits. Must be built on dirt |
| Dvergr Sharp Stakes | 5 Yggdrasil Wood, 2 Iron | 15 Pierce | 80 | 500 | Double the knockback, about 15 hits |
| Ashwood Stakewall | 6 Ashwood | 120 Pierce | 40 | 450 | A wall that also hits, about 14 hits |
| Trap | 5 Black Metal, 10 Bronze Nails, 1 Mechanical Spring | 50 Blunt + 50 Pierce | none | 300 | Roots the victim for 5 s, x4 backstab, 10 triggers |
Three catches:
- Stakes hurt you and your tames too. Damage to you is reduced by armor, and you can stand in the middle of a set of stakes without being hit. A wolf pack won't be so careful.
- Sharp Stakes don't refund materials when removed or broken.
- Trolls resist Blunt but are weak to Pierce. Stakes are pure Pierce, which suits Black Forest bases.
The Trap shines next to a Ballista. The wiki notes the Ballista aims slowly and inaccurately, so rooting a fast enemy for 5 seconds lets every missile land. Traps can't root bosses and will kill your tamed animals.
How does the Ballista work in Valheim?
The Ballista is Valheim's only real turret, and it's the best answer to fliers and to raids that hit while you're elsewhere in the base.
Cost: 10 Black Metal, 10 Yggdrasil Wood and 3 Mechanical Springs. Each Mechanical Spring is 1 Refined Eitr and 3 Iron at the Artisan Table. Springs can't go through a normal portal, so build them at the base where the Ballista will stand. The Ballista has 400 HP and gives 20 m of player base.
How it fires (wiki Ballista page): it holds 40 missiles of one type and shoots anything in a ±45° arc within 28 m in front of it. Ammo is crafted at the Artisan Table in stacks of 20:
| Missile | Recipe (makes 20) | Damage | Knockback |
|---|---|---|---|
| Wooden Missile | 5 Corewood, 2 Feathers | 75 Pierce | 45 |
| Black Metal Missile | 10 Wood, 1 Black Metal | 120 Pierce | 60 |
| Flametal Missile | 10 Ashwood, 1 Flametal | 140 Pierce | 60 |
| Bloodgold Missile | 10 Timberwood, 1 Bloodgold | 200 Pierce | 60 |
Black Metal Missiles are the value pick. One bar gives 20 shots at 120 damage. Save Bloodgold for the gear it makes; see our Valheim Bloodgold guide.
The friendly-fire problem and the trophy fix. By default, a Ballista shoots everything, including you, other players and your tames. It starts firing as soon as you load the first missile if you're standing in its arc. The fix is a trophy: load one and the Ballista mostly shoots only that creature type. The trophy isn't consumed, and one trophy works on any number of Ballistae. Draugr trophies target every Draugr variant. Any Charred trophy targets Warriors, Marksmen, Warlocks and Twitchers. Patch 1.0.14 extended this: "Updated Ballista to make it accept all new trophies (All Deep North enemies + Bjorn + Vile)." To reset to default targeting, use the same trophy again or rebuild the Ballista.
Placement tips:
- Put a gate or door in front of it. A closed gate blocks its line of sight, so you can walk past safely.
- Raise it up for fliers and big targets. The wiki recommends extra height against flying creatures.
- One trophy per Ballista. In a base that gets mixed raids, build two or three Ballistae with different trophies, or leave one on default somewhere players never walk.
Is the Shield Generator worth building?
For late-game bases, yes. The Shield Generator projects a 30 m sphere that stops rain, Ashlands cinder rain, lava balls and any projectile fired from outside it. That covers enemy arrows, spells and thrown rocks.
- Cost: 5 Iron, 5 Copper and 1 Shield Core, built at a Workbench. A Shield Core is 1 Black Core, 1 Surtling Core and 5 Ceramic Plates at an upgraded (level 2) Artisan Table.
- Fuel: up to 10 Bone Fragments or Charred Bone. It burns 1 per 500 damage it absorbs. Blocking rain costs nothing.
- Durability: 1,500. It resists Blunt, Slash, Pierce, Chop and Fire.
- Placement: it has to sit on solid ground or a Stone, Black Marble, Grausten or Cage floor. Overlapping shields merge into one bigger shield, which is how you cover a long harbor.
- What it doesn't do: the wiki lists projectiles, weather and lava, not creatures. Melee enemies still walk in, so it works with your walls, not in place of them. It also won't keep a fire lit in the rain. Hearths and campfires still need a roof.
It also helps farmers. Most crops can't grow under a roof, and the shield keeps the rain off without counting as shelter.
How do you defend a base in the Deep North?
The Deep North breaks most of the rules above, because of the Gammeltroll.
A Gammeltroll has 3,000 HP and stands 21 m tall. It punches for 220 Blunt, 100 Chop and 40 Pickaxe in a 15 m arc. By our math, that breaks a 1,500 HP stone wall in 4 punches. Its throw is worse: eight log projectiles, each dealing 150 Blunt, 100 Chop and 80 Pickaxe in a 5 m radius. It can throw from 12 to 300 m away, so you can't out-range it or hide behind a hill. In a r/valheim Gammeltroll base-defense thread (November 30, 2026), one player summed up the problem as "log artillery" and said even 8 m earth walls only partly protect against it.
What actually works, per the wiki's spawn data and player experience:
- Kill the local Gammeltroll first. Each one comes from a spawn point that spawns a single Gammeltroll and doesn't respawn it. Clear the area and it stays clear. That's why "build where you've already killed one" is the top player advice.
- Build behind or on the statue. A dead Gammeltroll turns into a Petrified Gammeltroll that counts as terrain you can build on. Only Ember Charges can damage the statue. Since 1.0.21, Gammeltroll punches can't break other petrified statues. As one player put it: "Build on top of or behind a petrified gammeltroll." Blast it with Ember Charges for Petrified Tissue later, but leave enough of it to stay useful as a wall.
- Moat for Barkas. The Barka (2,200 HP, weak to Fire) is the usual ground attacker once the Gammeltrolls are gone. Players report that a moat helps a lot, but one who dug it too shallow still took damage, so go deep.
- Ballista or a roof for Hexen. Hexen fly and cast spells, so terrain does nothing. A raised Ballista can hit them, a roof keeps them off you, and a Shield Generator absorbs spells cast from outside its dome.
- Or don't defend at all. Plenty of players keep their real base in a safer biome and run the Deep North from a small bunker with a Stone Portal. Our Valheim Deep North enemies guide covers every threat you'll meet out there.
Jotun Invasions are a separate case. You start one by breaking Malicious Ice in Mörkhalla. Meteors fall every 5 seconds and hit for 120 Fire, 40 Blunt, 50 Chop and 50 Pickaxe, so buildings inside an invasion zone take damage. Clear it by breaking the central Malicious Ice.
What is the best base defense setup in Valheim?
Here's a layered plan by stage. Each layer covers a gap in the one before.
| Stage | Outer layer | Wall | Automated | Covers |
|---|---|---|---|---|
| Early (Meadows, Black Forest) | Ring of campfires or Workbenches to block spawns | Stakewall on a raised bank | Sharp Stakes at the gate | Greydwarfs, Trolls, Eikthyr and Elder raids |
| Mid (Swamp to Mountain) | Moat 3 blocks deep | Stone | Sharp Stakes | Draugr, Blobs (raise the wall), Wolves |
| Plains to Mistlands | Moat, plus a roof over key areas | Stone or Dvergr Stakewall | Ballista with Black Metal Missiles, Traps in its arc | Fulings, Deathsquitos, Drakes, Seekers, Gjall |
| Ashlands to Deep North | Moat or a petrified Gammeltroll | Grausten 4x2 | Ballista + overlapping Shield Generators | Charred, Morgens, Barkas, Hexen |
If you'd rather not defend at all, use World Modifiers: set Raid Rate to None. Roaming monsters will still come, but raids stop entirely. Our Valheim world modifiers guide covers every setting.
FAQ
Does a Ward protect your base from monsters in Valheim? No. A Ward only stops other players from building, opening doors and opening chests. It does give 20 m of player base, which blocks spawns. When monsters attack your buildings inside its 32 m radius, it flashes a blue dome so you can see the attack.
Will a Ballista shoot me or my tamed animals? Yes, on default targeting it shoots players and tames in its 28 m, ±45° arc. Load a trophy so it only targets that creature type, and put a closable gate in front of it so you can pass safely.
What is the best wall material in Valheim? Per piece, a Grausten 4x2 wall (3,000 HP) is the toughest. Before Ashlands, a Dvergr Stakewall (2,000 HP) or Stone (1,500 HP) is best. Early on, a Stakewall (1,000 HP for 4 Wood) beats every other wood piece and doesn't rot in rain.
Can Trolls break stone walls in Valheim? Yes, but slowly. A 0-star Troll needs about 7 punches to break one 1,500 HP stone wall, compared with 2 for a wood wall. A deep moat stops Trolls from walking in, because they can't dig terrain or jump down from a ledge. They can still throw boulders across it from 8 to 20 m, so keep key pieces out of range or behind a wall.
Do monsters destroy your base when you're not there? Only in loaded areas. Valheim only simulates the area around a player, so a base nobody is near isn't attacked. Raids also need a player within 40 m of 3 base structures. Damage usually happens while you're home but busy, or when a raid arrives.
How do you protect a base from flying enemies in Valheim? Roof the areas that matter, raise a Ballista high with the right trophy, and add a Shield Generator for spell and arrow fire. Moats and walls do nothing against Drakes, Deathsquitos, Bats, Ghosts or Hexen.
More Valheim guides: base defense ties into raids, building and progression. These guides cover the rest.


