🇦🇺 Free & Fast Delivery Australia Wide - Orders Over $55 📦

Matthew Harrison - Apr 11 2017

Printing on glass with the Prusa MK2

Glossy bottom layer of black 3D print

Printing on glass can be useful for a number of purposes. Many people like the shiny reflective surface finish on the bottom of prints done on glass, or the fact that you can quickly and easily switch between glass plates on the printer. It may also be desirable for its adhesive properties with some materials.

Through some clever manipulation of your starting gcode script in your slicer, it is possible to pause the Prusa MK2 for a period of time at the beginning of a print after the mesh bed levelling is complete. This will allow you to place the glass down on the bed and secure it in place, ready for the print to begin on top of it.

Starting script

If you just came for the custom gcode, then here it is. For a further explanation and more details, feel free to keep reading.

M83; extruder relative mode
G28 W; home all without mesh bed leveling
G80; mesh bed levelling
G1 Z100 F1000; raise nozzle 100mm
G1 Y200 F6000; bring bed to the front
G4 S60; wait 60 seconds for glass to be placed on the print bed
; if you'd like more time here, you can pause the print
; or extend the wait time in the G4 command
G1 Y0 F6000; move bed back
G1 Z#.## F800; lower nozzle back down over glass
; IMPORTANT: replace the hashes above with the thickness of your glass
G92 Z0; set as zero position for z axis
G1 X60.0 E9.0 F1000.0 ; intro line
G1 X100.0 E12.5 F1000.0 ; intro line


Binder clip securing glass to print bed

First, you'll need to source some glass. I use 1.55 mm thick glass from a picture frame, which I find is a good thickness. If you go much thinner than that, you'll find that its very fragile and can break easily, but if you go much thicker then it'll take longer to heat up the glass and the surface temperature will be significantly lower than what you've set your heatbed to. Whichever thickness you choose, measure it (accurately), preferably with some digital calipers and replace the hashes in the G1 Z#.## F800 line of the starting script with your measurement.

With regards to sizing, you can either cut your glass to size or find an orientation that works for you. The most important thing is that it's not too wide to fit through the frame.

Once the printer has completed the mesh bed levelling and is waiting for you to put your glass down, make sure that there are no wisps of plastic left on the bed so that the glass sits completely flat. Also, if you'd like to give the glass a bit more time to heat up then you can pause the printer on the LCD and resume when you're ready. I secure the glass with binder clips on the front and back of the print bed. Be careful if you place them on the sides as they'll most likely be knocked as the bed moves through the frame.

Fine Tuning

If you measured your glass thickness correctly and the glass is perfectly flat on the heatbed then there should be no need to adjust your live z, it should print exactly as it was when you were printing on the PEI. If there is still fine tuning that needs to be done, it might be a good idea to remember your current live z value, then adjust it as necessary. Then you can take the difference between your final live z and your original live z and add it to/subtract it from your glass thickness value in the starting gcode script. That way you don't need to change your live z value every time you switch between printing on glass and PEI.


You should now be able to successfully print on glass with your MK2! You might find it useful to bump up the heatbed temperature a little bit to make up for the extra layer of glass on top that needs heating. With my infared thermometer I noticed a difference of about 4 degrees between the 1.55 mm glass and the actual temperature of the heatbed, so you can use that as a rule of thumb.

The process of getting prints to stick to glass is completely different to PEI. Some people use hairspray and glue stick whilst others can print fine on clean glass. You'll need to play around and find what works best for you and your materials.

More resources for you

E3D V6 Assembly Guide Poster

E3D V6 Assembly Guide Poster

Nov 23, 2020Matthew Harrison
How To Create a Voronoi Sphere in MeshLab

How To Create a Voronoi Sphere in MeshLab

Nov 14, 2020Matthew Harrison
Extruder Calibration

Extruder Calibration

Sep 25, 2020Matthew Harrison

Leave a comment

Please note, comments must be approved before they are published