Resume a 3D print after power loss: built-in recovery or a safe restart

By Sina Esfahani, OmniTechs · Published 30 November 2026

Two things decide whether a print can continue after a power cut: the printer must know where it stopped, and the part must still be stuck to the plate where it was. Marlin with power-loss recovery switched on, Prusa's power panic, Bambu Lab and some Creality printers save their place and offer to resume at power-up. Klipper does not.

Accept a resume only when the part has not moved or lifted. Without a prompt, the safest rescue on any printer is to measure the part, print the missing top separately and glue it on. Continuing on top of the part from edited G-code works on Marlin and Klipper printers, but only if Z never homes onto the part, and only with you beside it.

Do it in this order:

  1. Do not move the part or the axes; press gently to check it has not come loose or lifted at a corner.

  2. If the screen offers to resume, accept only with the part still attached, then watch it for the first 10 minutes (Prusa's advice).

  3. No prompt? Marlin needs POWER_LOSS_RECOVERY in the firmware, M413 S1 and a print from the SD card or USB stick; Klipper has no built-in resume.

  4. Measure the part height with a caliper in three or more places and match it to a layer height in the G-code.

  5. Print the missing top separately and glue it (any printer), or continue on the part with an edited file (Marlin or Klipper, never homing Z over the part).

  6. Before the next long print, test the recovery once and decide whether a UPS is worth it.

What happened, and what to do

Your situation after the print stopped

Summarised from Marlin's power-loss recovery page, Prusa's power panic articles and Bambu Lab's power loss recovery page, read on 30 November 2026.
What you seeWhat it meansWhat to do
Resume prompt, part firmly attachedThe firmware saved its placeResume and watch the first layers
Resume prompt, but the part moved, lifted or warpedThe part no longer matches the saved positionCancel; reprint, or route 1 if the part is still flat
Prusa: The heatbed cooled down during the power outageThe part may have releasedCheck it; if in doubt, reprint
No prompt on a Marlin printerRecovery off, a print streamed over USB or no card at bootA manual route; switch recovery on
No prompt on a Klipper printerKlipper has no power-loss resumeA manual route
Stopped by a clog, run-out or a cut-off fileNothing to resume fromA manual route
One of several parts failedNot a resume problemCancel that object

Cancelling one failed object is covered in printing copies at once or one by one. If you do not know why the print failed, read why a print turns into spaghetti before you restart it.

Built-in recovery: what each printer does

Power-loss recovery by printer

From Marlin's power-loss recovery documentation, Prusa's power panic and UPS articles, Bambu Lab's power loss recovery page, read on 30 November 2026.
PrinterHow it saves its placeWhat you must doMain limits
Marlin, including many Creality Ender modelsA file on the SD card, once per layer, or at the outage with a power-loss sensorFirmware with POWER_LOSS_RECOVERY, M413 S1, print from the cardZ is trusted, not measured; no recovery for prints streamed over USB or from OctoPrint
Prusa MK3 to MK4S, XL, CORE One (power panic)A sensor detects the mains loss; capacitors power the save and lift the headNothing; switching off with the power supply's own switch bypasses itA warning when the bed cooled
Bambu LabVoltage monitoring and capacitors; saves axes, extruder, G-code line and temperaturesNothingNot in the first layer; Z is not re-homed; a small mark
Klipper (mainline)No built-in featureA manual routeSee the Klipper section

Marlin: switch it on before you need it

The feature exists only in firmware built with POWER_LOSS_RECOVERY and is off unless PLR_ENABLED_DEFAULT is true. Send M413 to see the state, M413 S1 to switch it on and M500 to keep it after a reboot; the MarlinUI Configuration menu calls the same switch Power Outage. Without a sensor it saves to the card once per layer. On resume it reheats, raises the nozzle 2 mm, homes only X and Y, and returns to the saved height without homing Z, so the nozzle cannot be driven into the part.

It fails silently in four cases (Marlin):

  • The print was streamed over a USB cable or from OctoPrint. Only a print the printer reads from its card or USB stick can resume.

  • The board defines a POWER_LOSS_PIN with no sensor wired, as on the BTT SKR Mini E3. Nothing is saved; set POWER_LOSS_PIN to -1.

  • The card was not in the printer at boot, or the file was renamed or moved.

  • The printer was switched off with M81, which deletes the recovery file. For a planned overnight stop, pause with M25 or M125 and then switch off.

Without a display for the prompt, Marlin prints Resume requires LCD; send M1000 from a host to resume or M1000 C to cancel. To test it, switch off at the wall a few layers into a small card print: the Power Outage screen should appear at power-up.

Prusa: power panic

Prusa's printers switch off both heaters when the mains drops and use the capacitors' energy to save the position and lift the head. After a very short cut they continue on their own; otherwise they ask. Check that every object is still attached before you confirm, then stay with the printer for about 10 minutes. If the screen says the heatbed cooled down (#13808 on the MK4, #31808 on the CORE One) and adhesion is in doubt, Prusa advises reprinting: a part that comes loose can leave a blob on the extruder that damages the printer.

Prusa's 41-second clip shows what the MK4 does when the mains drops.

Power Panic - Original Prusa MK4 (Prusa 3D)

Bambu Lab and Creality

Bambu Lab printers offer to resume at power-up, except in the first layer. They cannot re-home Z with a print on the bed, and the nozzle leaves a small blob where it stopped that it can hit on resume. Glue stick helps PLA hold through a long outage. Creality lists Power Loss Recovery for the Ender-3 V3, which runs Creality OS based on Klipper; Creality's Marlin printers use the Marlin feature.

Why Klipper has no resume button

Klipper's documentation describes no power-loss resume. Its lead developer, Kevin O'Connor, called the idea useful but hard: G-code is not designed to be interrupted, steppers can move while unpowered, and the part changes as it cools. An administrator of the Klipper forum added that without a UPS the hot nozzle sits on the print, and that re-homing with a part on the bed is a bad idea. Community scripts exist but are not part of Klipper; on mainline Klipper, use a manual route.

Measure the part and find the restart layer

  1. Leave the part on the plate: route 2 needs it exactly where it is.

  2. Measure the height with a caliper at three or more points, away from blobs.

  3. Open the G-code in a text editor. PrusaSlicer and OrcaSlicer write ;Z: and the height at every layer change; Cura writes ;LAYER: and the layer number, with the height in the first following move that carries a Z value.

  4. Find the last layer that matches your measurement and check its top looks complete. Restart at the next layer up. Between two layers, take the higher: too high leaves a small gap, too low drives the nozzle into the part.

Worked example (hypothetical). A PETG part sliced in PrusaSlicer at 0.2 mm layers stops overnight. The caliper reads 46.22, 46.30 and 46.25 mm. The nearest layers are 46.2 and 46.4 mm and the top looks complete, so the restart marker is ;Z:46.4. For route 1 you cut the model at 46.2 mm; for route 2 you keep everything from ;Z:46.4 on.

Route 1: print the missing top and glue it

This works on every printer and puts no nozzle near the old part. If the top is rough, sand it flat and measure again.

  1. Load the same model and open the Cut tool (press C in PrusaSlicer and Bambu Studio).

  2. Enter the measured height as the cut height (the Height field in Bambu Studio). Keep only the upper part: switch off the lower one of Object A and Object B in Bambu Studio, or delete the lower object in PrusaSlicer.

  3. Print it with the cut face on the plate (Place on cut in Bambu Studio), then glue. Plug and Dowel connectors need a matching hole in the lower half, which the failed part does not have.

Choose the adhesive in which glue for which filament; if the joint carries load, test a glued PLA joint first. For planned seams, see splitting a large model for assembly.

Route 2: continue on top of the part (Marlin and Klipper)

The danger is homing Z onto the part. G28 drives the nozzle, or the probe beside it, down until something triggers; with Z_SAFE_HOMING (Marlin) or [safe_z_home] (Klipper) it first moves to a set point, often the bed centre, where most parts stand. Landing on the part crashes into it, tears it off the plate or sets Z far too high; mesh probing (G29, BED_MESH_CALIBRATE) and a purge line can hit it too. Stay beside the printer with a hand on the power switch, as Marlin advises for the first home after a homing change. Never disable thermal runaway protection or other heater checks to make a restart work.

In a copy of the G-code, delete the whole start sequence and every layer down to your restart marker: heating, homing, probing, purge line and old layers. On Marlin, put these lines in their place:

  1. M140, M190, M104 and M109 with the temperatures from your file, so bed and nozzle are hot before anything moves and the nozzle can pull free of the part.

  2. G28 R10 X Y: raises Z 10 mm, then homes X and Y only.

  3. A G1 move to a spot where the nozzle, and the probe if fitted, are over bare plate at least 10 mm from the part.

  4. G28 Z without Z_SAFE_HOMING, or G28 H Z with it; H holds X and Y so Z homes beside the part.

  5. M420 S1 if you use a saved mesh, because G28 switches levelling off.

  6. G1 Z56.4 F600, 10 mm above the restart layer.

  7. If the file contains M82 (absolute extrusion), G92 E with the last E value before the cut; with M83 nothing is needed. Copy the last M106 fan line from above the cut too.

On Klipper, replace the start macro (often PRINT_START, which homes and probes) with the heating lines, G28, BED_MESH_PROFILE LOAD=default instead of BED_MESH_CALIBRATE, and steps 6 and 7. Before you start, set home_xy_position in [safe_z_home] to a spot clear of the part and z_hop to 10 so the head lifts first, then restart Klipper: G28 now homes Z beside the part. If Z homes on a switch the nozzle presses at one fixed spot, leave that spot alone; if the part covers it, use route 1. Restore home_xy_position afterwards.

Comiska's Custom shows the Klipper version on an Ender 3 Pro: home at a new spot, remove the mesh and purge, and start one layer above the measured height.

How to resume a failed print on an ender 3 pro running Klipper (Comiska's Custom)

Send the new lines one by one from the console first, then start the file. A good restart lays the new layer on the old one with a visible seam; stop at once if the nozzle scrapes, pushes the part or prints in the air. On the 3D Printing Stack Exchange, a restart that stopped extruding after a few layers was traced to temperature lines missing from the file; keep them in the file rather than preheating from the screen. The commands themselves are explained in the G-code commands you will edit.

Does a UPS make sense?

A UPS (a battery unit between socket and printer) bridges a short cut, rarely a long one. Prusa recommends a line-interactive UPS of at least 1,000 VA; a standby UPS switches over too slowly and the printer restarts. On a 1,500 VA unit, Prusa measured 35 minutes for an MK4-class printer on PLA (66 to 150 W after the first layer) and 72 minutes for a MINI. For long outages Prusa says to switch off and reprint later.

In the Netherlands, Netbeheer Nederland counted 0.32 unplanned interruptions per connection in 2025, lasting 73.9 minutes on average, and planned work is announced at least three working days ahead. A UPS earns its place when your printer has no recovery, when short dips restart it, or when it lets the printer retract and lift, as Marlin's BACKUP_POWER_SUPPLY option does with a power-loss sensor. When the power fails, the Dutch fire service advises pulling the plugs, especially if you go out (see leaving a printer running unattended); a Marlin recovery file stays on the card.

When to stop and start again

  • The part moved, lifted at a corner or warped: no route puts new layers in the right place. Reprint, or use route 1 only if the part is still flat.

  • The nozzle hit the part or the plate: switch off, let it cool and check both before another try.

  • A Prusa printer never offers to resume: Prusa's first check is the power panic cable between power supply and mainboard. Switch off, unplug and let it cool before you open anything, then contact Prusa support.

  • A seam would weaken a part that carries load: reprint it whole.

Switching off safely and automatic power-off are covered in printer voltage and switching off safely. If you need the part rather than the rescue, the OmniTechs 3D printing service prints PLA and PETG parts from your file.