Nozzle Notes
Slicers & software

PrusaSlicer Temp Tower: Custom G-code Setup

PrusaSlicer has no one-click temperature tower, but its custom G-code feature builds one. Here are the steps, an example range, and what to check on each section.

By Sepehr Sabbagh-pour · Published · 5 min read

White 3D printed 20 mm calibration cube on a black mesh surface after the raft was removed
First Print: 20mm Calibration Cube by syvwlch, CC BY 2.0 (resized)

A PrusaSlicer temp tower is a tall calibration model printed with the nozzle temperature stepping at set heights, so one print shows which temperature suits a filament. PrusaSlicer does this with custom G-code: you drag the layer slider to a section boundary, add an M104 command, and repeat for each step.

Prusa's Knowledge Base names the temperature tower as the typical use of its custom G-code feature. This guide turns that into a plain procedure, with an example step table, what to look for on each section, and the mistakes that waste a print. It is based on Prusa's and Marlin's documentation, not on a print run of our own.

How do you make a temperature tower in PrusaSlicer?

You make a temperature tower in PrusaSlicer by loading a tower model that has one section per temperature, slicing it, and inserting an M104 custom G-code command at the layer where each section starts. PrusaSlicer inserts the command before the selected layer is printed, so the temperature changes exactly at the boundary.

The steps, following Prusa's article on inserting a pause or custom G-code at a layer:

  1. Load a temperature tower model and set up your normal print profile for the filament. Disable sequential printing, because Prusa says custom G-code insertion does not work with it.
  2. Set the filament's nozzle temperature to the hottest value in your planned range, or whatever you want the bottom section to use. The bottom section needs no command.
  3. Slice, then open the Preview. Drag the vertical layer slider on the right to the first layer of the second section.
  4. Right-click the orange plus icon and choose Add custom G-code.
  5. In the window that opens, type the command, for example M104 S225, and confirm with OK.
  6. Move the slider to the next boundary and repeat with the next temperature.
  7. Export the G-code and print. Prusa notes you can press Enter to put several commands in one block, and you can edit or remove an entry from the grey cross icon on the slider.

The slider shows each layer's height in millimeters, so a tower with 10 mm sections needs a command at roughly 10 mm, 20 mm, 30 mm and so on. Match the boundary to the real model, not to this example. For more on reading the slider, see the PrusaSlicer preview and layers guide.

What does M104 do, and when do you need M109?

M104 sets a new target hotend temperature and lets the print continue immediately. Marlin's documentation describes it as setting the target and continuing without waiting, with the firmware heating or cooling in the background. M109 does the same but waits until the nozzle reaches the target before moving on.

Prusa's article lists both as the most commonly used custom G-code commands and says M104 is the one to use for a temperature tower. It also explains the wait variants of M109: with the S letter it waits only while heating, and with the R letter it also waits for the temperature to fall.

For a tower that steps downward, M104 is usually enough, because the nozzle cools slowly while the printer keeps working on the layers. If you want a section to start only once the nozzle has settled, M109 with the R letter is the documented way to wait on a drop. That is a judgment call: waiting makes each step cleaner but adds a visible pause on the print.

What temperature steps should a PrusaSlicer temp tower use?

Use steps of 5 degrees Celsius across a range centered on the maker's recommended temperature. The recommendation comes from the filament's spool, datasheet or the maker's documentation. Prusa's own PLA page, for example, recommends 215 °C for the first layer and 210 °C for other layers, so a PLA tower from that page would sit around 210.

The table below is an illustration of how to lay out a plan, not a Prusa recommendation. Replace the range with the one printed on your filament.

Tower section (bottom to top)Example targetCommand at section start
1 (bottom)225 °CNone, set in the filament profile
2220 °CM104 S220
3215 °CM104 S215
4210 °CM104 S210
5205 °CM104 S205
6 (top)200 °CM104 S200

Go from hot to cold. Starting hot gives the bottom section the best chance to stick to the bed, and the cooler sections above are printed once the model is anchored. Check that your range stays inside what the filament and your hotend allow, since the firmware enforces its own limits.

What should you look for on each tower section?

Compare the sections side by side for stringing, surface finish, bridging and overhangs, then pick the coolest section that still looks clean and holds together. Colder sections usually string less but can look dull or fail to bond between layers; hotter sections look glossier but ooze more.

  • Stringing and oozing: Prusa's PLA guide says PLA is sometimes prone to stringing and oozing and that proper retraction helps. If every section strings, adjust retraction in PrusaSlicer before blaming temperature, or read the stringing fix guide.
  • Layer bonding: try bending or snapping a spare printed section. Weak bonding points to a section that is too cool.
  • Surface and overhangs: look for drooping overhangs and rough bridges at the hot end of the range.

Save the winning value in a custom filament preset so you do not need to repeat the test. The filament and printer profiles guide covers saving presets. For material-specific ranges to start from, see the PLA print temperature and PETG print temperature pages.

Does PrusaSlicer have a built-in temperature tower?

PrusaSlicer's documentation describes the temperature tower as something you build yourself with custom G-code. In the Knowledge Base pages we read, there was no one-click tower generator. Prusa's custom G-code article only says the feature is useful for creating a calibration G-code such as a temperature tower.

That differs from OrcaSlicer, which ships a calibration menu; our OrcaSlicer calibration tools guide covers it. A tower is only one step in tuning a printer, and the how to calibrate a 3D printer guide shows where it fits alongside first layer, flow and retraction.

What can go wrong with a custom G-code tower?

The main risks are mistyped commands and a wrong layer boundary. Prusa warns to verify twice that you inserted the right G-codes and that you understand what they do, because some G-codes can override stored EEPROM values or move the nozzle into the print bed. Stick to M104 and M109 for a tower.

  • Sequential printing on: Prusa says custom G-code insertion does not work with it.
  • Old software or firmware: Prusa says you need PrusaSlicer 2.2 or newer, and older printer firmware may not support the feature (it names MK3 firmware 3.9.1 for pauses).
  • Misplaced boundaries: a command one layer early or late blurs the change, so check each slider position against the model.
  • Printing one tower for several filaments: temperature results belong to one filament, spool and printer. Repeat for a new brand or color.

Print time and filament use for a small tower are low, but you can estimate them with the print cost calculator before committing a spool.

Frequently asked questions

How do you make a temperature tower in PrusaSlicer?

Load a temperature tower model with one section per temperature, slice it, and open the Preview. Drag the layer slider to the first layer of the second section, right-click the orange plus icon, choose Add custom G-code and enter an M104 command such as M104 S220. Repeat at each section boundary with the next temperature, then export the G-code. Prusa's Knowledge Base documents this custom G-code feature and names the temperature tower as a typical use. The command is inserted before the selected layer prints, so the change lands exactly at the boundary. Turn off sequential printing first, because Prusa says the feature does not work with it.

What G-code changes the temperature in PrusaSlicer?

M104 sets the hotend target temperature and lets the print continue, so it is the command Prusa recommends for a temperature tower. M109 also sets the temperature but waits until the nozzle reaches it. With the S letter, M109 waits only when heating; with the R letter it also waits for the temperature to drop. Marlin's documentation describes M104 as setting a new target and continuing without waiting, with the firmware holding the temperature in the background. For a downward-stepping tower M104 is normally enough, while M109 with R makes each cooler section start only after the nozzle has settled, at the cost of a visible pause.

What temperature range should a temp tower cover?

Center the range on the filament maker's recommended temperature and step in 5 degree Celsius increments, usually a few steps above and below. The recommendation is printed on the spool or in the maker's documentation. Prusa's PLA page, for example, recommends 215 degrees Celsius for the first layer and 210 degrees for other layers, so a PLA tower built from that guidance would sit around 210. Check that every step stays within what the filament and hotend allow. Start with the hottest section at the bottom so the model sticks, then step down and judge each section for stringing, surface finish, bridging and layer bonding.

Does PrusaSlicer have a built-in temperature tower?

In the Prusa Knowledge Base pages we read, PrusaSlicer has no one-click temperature tower generator. The documented method is to insert custom G-code at chosen layers, and Prusa's own article lists a temperature tower as an example of what that feature is for. You still need a tower model with sections of known height, then place an M104 command at each boundary using the layer slider in the Preview. OrcaSlicer differs because it includes a calibration menu with a temperature tower built in. If you want a guided generator rather than manual G-code, that is the practical difference between the two slicers.

Sources

Sepehr Sabbagh-pour

Founder and editor

Sepehr Sabbagh-pour

Software engineer since 2009 and Head of Engineering by day, a maker who has owned several 3D printers, writing practical guides to 3D printers, filament and running costs, with every article saying what was and was not tested.

Drafted with AI assistance, then edited and reviewed by Sepehr before it goes live. How we use AI.