Magma is a red-hot fluid that wells up from deep within the earth (but not so deep that it cannot be found by dwarves), entering your map either by the edges or by the area beneath a magma pool. Magma that is above the ground is called Lava; the substance itself remains the same. Magma is very Fun.
Magma serves as a heat source, replacing fuel in magma smelters, magma forges, magma glass furnaces, and magma kilns. Magma is extremely hot which can lead to even more Fun. Workers that dig into a magma reservoir are not instantly killed as the magma touches them, but they are set on fire, which will kill them very quickly. For this reason, taking steps to ensure there is adequate water available to extinguish flaming dwarves running in random directions is advised before digging into any magma pools from the side. Channeling a single square wide pit across the planned magma pipe one tile away from the wall to breach and filling it with water using the pond zone tool is recommended, so the panicking dwarves have no choice but to run through the water, and the water itself turns into an obsidian wall as soon as the magma flows into it.
The list of materials that are magma-safe is extensive.
Magma never cools, but can evaporate if left at a depth of 1/7 for long enough. When magma is mixed with water it forms obsidian. Note that magma located above semi-molten rock will be listed as a Magma Flow and cannot be cooled into obsidian.
Without screw pumps to impart pressure, magma flows rather slowly (though no more slowly than unpressurized water). A pipe to bring magma across the full map can take as much as a year to fill. This, combined with the fact that it will evaporate, can make filling a reservoir difficult and tedious. As a rule of thumb, the area coming out of a 1-wide-pipe shouldn't be more than three squares wide and 20 squares long, or else it will evaporate as fast as you fill it.
 Bringing Magma Up
Magma can be brought to the surface by three different methods: pump stacks, magma pistons, and minecarts. Pump stacks are conceptually the simplest, but require an enormous amount of in-game time to make. Magma pistons tend to be faster to make, but require more time to understand how to build them. Minecarts are a simple solution, but require more management than pump stacks because they can overfill a reservoir.
 Pump stacks
Pumping magma up from the magma sea via a conventional pump stack is a lot of work, requiring dozens of pumps and significant amounts of power. Making all of the pumps magma safe also requires a lot of precious materials like steel or glass.
 Magma pistons
Magma pistons are another way to move magma near the surface. Magma pistons require less time and fewer precious materials to construct than pump stacks. However, magma pistons are a bit more complicated than pump stacks, so it takes more time to understand how to operate and build them.
Minecarts submerged in 7/7 magma will fill with magma. Minecarts full of magma can be tipped at track stop, which will pour the magma in a specified direction from the stop. Mine cart tracks can be built from the magma sea to the surface. Minecarts used for this must be magma safe. It may also be necessary to build rollers in magma to pull the minecarts out, which would also need to be magma safe. A minecart track can be operated by dwarves or fully automatic, using powered rollers. Depending on the placement of the track stop, dangerous overflow can be prevented by making the track stop of a material that will melt/burn once the reservoir begins to overflow.
Impulse ramps can be used to get magma-filled carts to whereever they need to go without having to provide power to an extensive system of rollers, and will fully automate bringing magma to the surface. Since such systems require comparatively little designation and magma-safe materials, work can be begun much earlier than some other methods of bringing magma to the surface.
In one design posted to the forums by gchristopher, a pump can provide power the roller, making the ramp eligible for building the roller, and keeping the trench at 7 magma so the carts fill instantly.
If you drop minecarts in directly from at least 2 z-levels above onto the right ramp, this setup has the magical property that it can handle an arbitrary number of minecarts, and dispense them at a constant controlled rate. Carts are pushed up the left ramp by the roller.
If you extend the right bridge, that tile ceases to be a ramp. Exactly one minecart will fall onto the tile and stay there, and all other minecarts dropped from above will form a quantum pile 1 z-level up.
The last time I built one, I timed the cart dispensing rate at 1 per 8 ticks. This is slow enough that carts can be brought to the surface using an impulse ramp spiral, but fast enough that you can still quickly cover a large area with magma.
The same design works with water, for giving you a lot of flexibility creating tall waterfalls without pump stacks, quickly and cheaply.
 Magma pools
Although the name suggests them as pools, they are more like pipes. They can be found underground, however they rarely reach the upper z-levels (40+). Most end a few z-levels above the magma sea, though some may span more than 100 z-levels. Magma pools seem to be always connected to a magma sea, and the sea and pipe can occasionally reach up to the same level, making them hard to separate. However, magma pools can be identified by the obsidian walls which surround them. Magma pools will slowly refill themselves, giving the player an infinite source of magma. The entire embark tile containing the pool will produce sporadic bursts of magma until the magma within it is at its natural level (ie. the magma level at embark) or until it is halted by a bridge, floor, or bottom of a wall.
Volcanoes are magma pools that extend all the way to the surface. Volcanoes are an endless source of magma as they will always refill themselves. They never erupt, unlike their real-life namesake.
Magma in volcanoes does not exert pressure unless you pump magma into it. So it is not very hard to design a magma-based industry zone or a defense system around volcanoes. But digging the last piece of the channel can be a little dangerous. Several (nearly) safe methods are:
Digging From Above: If you can find a suitable position, at least in the top of the volcano you can, standing on one level above and dig a channel is the most safe and easy way.
Diagonal Digging: Magma moves slower in diagonal than straight. So diagonal digging gives you more time to flee away. But also, slower flow means you must keep in mind the evaporation. You should dig a smaller channel, wait for it to fill up, and extends the channel by Digging From Above.
Busy To Leave:  "I find it's pretty simple to do (though I haven't tried this yet in the latest version or two) if you know what you are doing. Simply mine up to the corner of a lava tube and then smooth the last tile. Dig a staircase within a few tiles of the place where you will be breaching that leads up and back into your fortress, this will allow your dwarf to get out before the magma gets him. Now designate the smoothed corner to be carved into a fortification. Now immediately when the dwarf begins to carve the fortification, (and this is the most important part!), designate a bunch of other tiles to be smoothed/carved. It's not important that your dwarves actually smooth, carve, or engrave those tiles, what is important is that your dwarf immediately takes another smooth/carve/engrave task elsewhere in the fortress when they finish the current one. If they do not then they will pause for the briefest of instants as they pick a new task, resulting in their death. If they have the job though, they will instantly turn and head up the staircase, stopping the magma from catching and killing them."
Exploit From Below:  "Here's the basic premise: Miners are able to mine out tiles diagonally above them even if there is a bridge over their heads. First you dig out your magma tunnel to feed magma to wherever in your fort you need it and dig it right up against the volcano pipe. Then you channel a trench against the pipe that can be the width of the tunnel if you wish. Build a magma-safe bridge over the trench, making sure to cover it completely, and then seal off access to the magma tunnel. Dig a new separate path to access the now bridged-over trench. Finally, designate the volcano pipe wall on the Z level of the magma tunnel for mining. Your dwarves will stand in the trench beneath the bridge but will somehow still mine out the squares diagonally above them, causing the magma to flow safely onto the bridge leaving your dwarves unscathed."
Make sure the top z-level is sealed off from miners and dig ( - ) the highlighted tiles on the upper z-level.
 Properties of magma
Magma behaves the same way as water with the exception of not being affected by pressure (except when being moved by a screw pump) and apparently not showing flow. Magma will turn into obsidian1 if it touches water. In the game, magma's temperature is . See the list of magma-safe materials for more information on what can (or cannot) be safely submerged in magma.
Tiles directly adjacent to magma will be heated to a temperature of
☼ when placing digging designations and causing unrevealed mining-designated tiles to cancel their designation (with a "warm stone" warning) once they are revealed.
1 - specifically, one of the inorganic materials having the [LAVA] tag, selected randomly per biome during worldgen.
 Dangers of magma
Any contact with magma results in nearly instant immolation, followed by death if water is not close at hand. Additionally, dropping items into magma can generate clouds of magma mist which can set your haulers on fire if you aren't careful.
|This article or section has been rated D for Dwarf. It may include witty humour, not-so-witty humour, bad humour, in-jokes, and references to the Bay12 forums. Don't believe everything you read, and if you miss some of the references, don't worry.|
Magma is very well known for being the perfect solution to any problem encountered by dwarves. Giant badger invasion? Pour magma on it. Noble being his usual snotty, useless, arrogant self? Pour magma on it. Door locked due to invaders? Pour magma on it! Flooded your fortress with magma? Pour... Um, wait a minute...
[MATERIAL:INORGANIC] - reconstructed from data extracted from memory [STATE_COLOR:ALL_SOLID:GRAY] [STATE_NAME_ADJ:ALL_SOLID:rock] [STATE_COLOR:LIQUID:RED] [STATE_NAME_ADJ:LIQUID:magma] [STATE_COLOR:GAS:RED] [STATE_NAME_ADJ:GAS:boiling magma] [BUILD_COLOR:7:0:0] [TILE_COLOR:7:7:1] [SPEC_HEAT:1000] [MELTING_POINT:11500] [BOILING_POINT:13000] [MAT_FIXED_TEMP:12000] [SOLID_DENSITY:2000] [LIQUID_DENSITY:2000]
|Practically everything Magma related|
|What can I use to make magma-proof items?|
|How do I channel magma?|
|Digging designation canceled: Warm stone located|
|Where can I find magma?|
|Back to the Main FAQ|