A smart mirror DIY build turns an ordinary mirror into a screen that shows the time, weather, calendar, and news while it still works as a mirror. You need four things: a two-way mirror, a monitor, a Raspberry Pi running the free MagicMirror² software, and a frame deep enough to hold them all. A first build takes one weekend and costs about $150 to $300 with a used monitor, or about $270 to $420 with new parts. This guide walks you through every step, from picking the glass to hanging the finished mirror on your wall.
If you can use a screwdriver, follow a parts list, and copy a few commands into a terminal, you can build this. You do not need to know how to code. The software is free and open source, the community behind it is large, and most of the work is measuring, cutting, and mounting — not programming.
How a Smart Mirror Works
A smart mirror is a monitor hidden behind a two-way mirror. A two-way mirror, also called a half-silvered mirror, reflects most of the light that hits its front and lets some light through from behind. When the screen behind it is dark, you see your reflection, just like a normal mirror. When the screen shows bright white text on a black background, that text shines through the glass and looks like it floats on the mirror.
That is why the software matters so much. MagicMirror², the free open-source platform behind most DIY builds, uses a pure black background with white text and simple widgets. The black parts stay invisible, and only the bright parts show through. The Raspberry Pi runs the software full screen, and the monitor displays it behind the glass. Nothing else is going on behind the mirror — no magic, just a bright screen behind a half-silvered sheet.
Pick the spot first, because it shapes every choice that follows. A hallway or entryway mirror works best, since you glance at it on your way out. A bathroom mirror works too, but steam and splashes mean you should keep the electronics sealed and the power connections dry. Put the mirror where you already have a power outlet nearby and a solid Wi-Fi signal, because the Pi needs both.
What You Need to Build a Smart Mirror DIY
Here is the full parts list for a standard 24-inch build. Buy the monitor and the mirror first, because everything else is sized to fit them.
- Two-way mirror: glass or acrylic, cut to your frame size (see the next section)
- Monitor: a 22- to 24-inch IPS monitor with HDMI input, 1080p or better
- Raspberry Pi: a Pi 4 or Pi 5, 2GB of RAM is enough for the basic mirror
- MicroSD card: 16GB or larger, Class 10 or A1 rated
- Power supplies: the official USB-C supply for your Pi model, plus the monitor’s own power brick
- HDMI cable: micro-HDMI to HDMI for the Pi 4 and Pi 5
- Frame materials: 1×3 pine boards, wood glue, screws, and matte black paint for the inside
- Mounting hardware: VESA screws or L-brackets for the monitor, adhesive standoffs or Velcro for the Pi
- Black backing board: foam board or thin plywood to block light behind the monitor
- Tools: saw, drill, screwdriver, measuring tape, level, and a stud finder for hanging
- Keyboard and mouse: a USB set for the first setup only
Two parts deserve a warning before you spend money. First, buy the mirror to match the monitor’s screen, not the frame. Measure the monitor’s viewable screen area and order the mirror a little larger than that, with about 2 cm of overlap on each side, so it mounts into the frame without gaps. Second, check that the monitor’s power and HDMI ports sit on the bottom or side, not on the back. Ports on the back stick out and make the frame deeper than it needs to be.
Choose Your Two-Way Mirror
The mirror is the one part you cannot fix later with software, so choose it with care. You have three options, and each one trades cost against reflection quality.
| Option | Reflection | Cost | Best for |
|---|---|---|---|
| Glass two-way mirror | Sharpest, clearest | Highest | A premium, permanent build |
| Acrylic two-way mirror | Good, slightly softer | Mid-range | First builds and large mirrors |
| Mirror window film on glass | Weakest, can look milky | Lowest | A cheap test build |
Glass gives the sharpest reflection and the most professional look, but it is heavy, fragile, and costs the most. Acrylic is lighter, cheaper, and far more forgiving — if you drop it or bump it during the build, it will not shatter. Its reflection is slightly softer, and it scratches more easily, so handle it with clean hands and a soft cloth. Film is the budget route: you stick mirrored window film onto plain glass or acrylic. It works, but the reflection quality is clearly worse, and applying film without bubbles takes patience.
For a first build, order acrylic. A 3 mm acrylic two-way sheet is the common choice, and it reflects about 70 percent of light while letting about 30 percent through — the balance that keeps the mirror looking like a mirror while the display stays readable. Order it cut to size from a plastics supplier or a specialist such as Two Way Mirrors, whose step-by-step DIY guide explains the glass choices in detail. Their Glass Smart Mirror, for example, is 70 percent reflective and 30 percent transparent, which is the same balance most builders aim for.
Size the mirror to the monitor, not the other way around. The most common build uses a 24-inch monitor in portrait mode, which gives a visible area of about 38 by 68 cm. A 27-inch monitor gives about 44 by 78 cm. Order the mirror to cover the monitor’s screen plus the overlap for mounting, then build the frame around the mirror.
Pick the Right Monitor
Almost any flat monitor works, but a few traits make one much better than another behind a mirror. Look for these before you buy:
- IPS panel: wide viewing angles keep the text readable when you stand off to the side.
- 1080p or better: text turns fuzzy below 1920 by 1080, and the mirror hides nothing.
- At least 300 nits of brightness: the mirror blocks part of the light, so a dim screen turns nearly invisible.
- Slim bezels: a thin bezel means more mirror and less black border showing through.
- Ports on the bottom or side: back-facing ports force a deeper frame.
- VESA mount holes: they make it easy to bolt the monitor inside the frame.
A used 22- or 24-inch office monitor is the smartest buy for a first build. It costs little, and if the project does not work out, you have lost almost nothing. A small portable USB-C monitor is the slim alternative: it keeps the whole build thin and skips the bulky power brick, but it costs more. Avoid old monitors with thick bezels and dim screens — the mirror will show every flaw.
Turn the monitor to portrait mode if your mirror is taller than it is wide. Most monitors rotate in their stand, and the Pi can rotate the display in software. Portrait fits a hallway mirror better and matches how you read a clock, a calendar, and a short news list from top to bottom.
Build the Frame
The frame is a shallow wooden box. The mirror sits at the front, the monitor sits behind it, and the Pi hides behind the monitor. It needs to be about 3 inches deep: roughly 2 inches for the monitor and 1 inch for the Pi and cables.
- Measure twice. Measure the mirror, the monitor’s outer size, and the monitor’s screen area. Write all three down before you cut anything.
- Cut the frame boards. Use 1×3 pine for the sides. Cut the boards to the mirror’s outer size, with 45-degree mitre cuts at the corners if you want a clean look.
- Cut a rabbet, or groove, along the inside edge of each board. The groove holds the mirror at the front. Its depth should match the mirror thickness plus a little room for the monitor bezel.
- Glue and clamp the corners. Wood glue and two clamps per corner hold the frame square while it dries. Check with a square before you walk away.
- Paint the inside matte black. Black paint inside the frame kills stray reflections and hides the monitor edges. Do this before you mount anything.
- Build a back frame. Cut a second, shallower frame from thin boards to hold the monitor and the backing board. Screw it to the back of the main frame.
- Mount the monitor. Set the monitor face-down into the frame so its screen sits flat against the back of the mirror. Fix it with VESA screws or L-brackets. Leave no gap between the screen and the mirror, or light will leak around the edges.
- Mount the Pi. Stick the Pi to the back of the monitor with adhesive standoffs or strong Velcro. Keep the microSD card slot reachable, because you will swap the card if anything goes wrong.
- Add the backing board. Cut black foam board to fit behind the monitor. It blocks light from the room behind the mirror and keeps the display crisp.
- Drill a cable hole. Drill one hole in the bottom rail for the power cables. A single neat hole beats cables draped over the frame edge.
Test-fit everything before you glue the back shut. Slide the mirror in, set the monitor behind it, and hold the frame up to the light. If you see a bright line around the monitor edge, the screen is not flush with the mirror, or the backing board has a gap. Fix it now — you cannot fix it after the mirror is on the wall.
Install MagicMirror² on the Raspberry Pi
MagicMirror² is the free, open-source software that runs the display. It is maintained by the MagicMirrorOrg community on GitHub, and the current stable release is v2.38.0. You install it on Raspberry Pi OS, and the whole setup takes about 15 to 30 minutes once the Pi is running.
- Flash Raspberry Pi OS. Use Raspberry Pi Imager on your computer to flash the 64-bit Full version with desktop onto the microSD card. The Lite version will not work, because MagicMirror² needs a desktop to run. Turn on SSH and Wi-Fi in Imager before you flash, so you can reach the Pi without a screen.
- Boot the Pi and update it. Put the card in the Pi, connect the monitor and keyboard, and boot. Open a terminal and run
sudo apt update && sudo apt full-upgrade -y, then reboot. - Run the installer. The community installer sets up Node.js, downloads MagicMirror², and configures it to start on boot. Run
bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/raspberry.sh)"and answer yes when it asks to start on boot. The install takes 5 to 15 minutes. - Check it works. Run
cd ~/MagicMirrorand thennpm start. You should see the default screen: a clock, a calendar, a weather widget, and a compliments line. Press Ctrl+Q to quit. - Set your location. Open
~/MagicMirror/config/config.jsin a text editor. Set your language, time zone, and location. The weather module needs a free API key from OpenWeatherMap — sign up on their site, paste the key into the weather settings, and save. - Set the screen to portrait, if needed. If your monitor stands tall, rotate the display in the Pi settings or in the boot config, then reboot and check that the clock sits at the top and the widgets stack neatly.
- Turn off screen blanking. The Pi turns its screen off after a while by default. Disable screen blanking in the Pi settings so the mirror stays on all day.
For the full official install steps, check the MagicMirror² project on GitHub. The installer above comes from the community’s install scripts, and the project’s own docs are the final word when a step does not match your Pi model.
Set Up Your First Modules
MagicMirror² ships with a set of built-in modules, and you turn each one on or off in config.js. Start with the defaults, live with them for a week, and only then add more. A mirror with five clear widgets beats a mirror crowded with twenty.
- Clock: time and date, large and top center. This is the widget you will look at most.
- Weather: current conditions and a short forecast. It needs the free OpenWeatherMap key.
- Calendar: your next events from Google Calendar or any calendar link. Keep it to the next three or four events.
- Newsfeed: headlines from an RSS feed. Pick one source you actually read.
- Compliments: a rotating friendly line. It sounds silly, and it is the module guests always comment on.
When you are ready for more, the community has hundreds of third-party modules. The most useful ones for a home mirror are a Spotify now-playing display, a traffic and commute time widget, and a motion sensor module that wakes the screen when you walk past. Install a new module by cloning it into the modules folder and running npm install inside it, then add it to config.js and restart the mirror with pm2 restart MagicMirror.
Keep the layout simple. Put the clock at the top, weather and calendar on the sides, and news at the bottom. Leave the middle of the mirror empty — that is where your reflection goes, and covering it defeats the point of a mirror.
Power, Cables, and Heat
A smart mirror has two power plugs: one for the monitor and one for the Pi. Both need to reach an outlet without stretching across the wall, so plan the outlet before you hang the frame. A short power strip hidden behind the frame works well, and a single cable running down to the outlet looks far better than two.
Keep the cables short and tidy. Coil the extra length with cable ties and tuck it behind the monitor, away from the Pi’s vents. Loose cables press against the mirror, trap heat, and make the next repair harder than it needs to be.
Heat is the quiet killer of smart mirrors. A monitor and a Pi inside a sealed wooden box get warm, and warm electronics fail early. Leave vent slots at the top of the frame so hot air can escape, and never seal the back completely. If the mirror hangs in a warm room, add a small fan or leave a wider gap at the top. Check the back of the frame after the first full day of running — if it feels hot to the touch, add more ventilation before you hang it for good.
Want the mirror to turn itself off at night? A smart plug or a timer plug on the monitor’s power cord does the job without any code. Our guide to WiFi plugs explains how to schedule any device, and our timer plug guide walks through the simple plug-in timer version step by step.
Hang It and Test It
A finished 24-inch smart mirror weighs several kilograms, so hang it like a heavy mirror, not a picture frame. Find two wall studs with a stud finder and drive screws into them, or use heavy-duty wall anchors rated well above the mirror’s weight. A French cleat — a pair of angled wooden strips, one on the wall and one on the frame — holds the weight evenly and keeps the mirror flat against the wall.
Hang the mirror at eye level for the tallest person who will use it daily. Stand in front of it and check three things: your reflection is clear across the whole surface, the clock and weather are readable from your normal standing spot, and no bright edge or gap shows around the monitor. Step to the side and check again — a good build still reads well from an angle, thanks to the IPS panel.
Then run it for a full week before you call it done. Watch for the screen going dark (screen blanking is still on), the weather widget showing an error (the API key is wrong or missing), and the Pi losing Wi-Fi (the signal is weak behind a wall). Each of these has a simple fix, and catching them in week one beats discovering them after you have sealed the frame.
How Much Does a Smart Mirror DIY Cost?
The honest answer is that it depends on what you already own. A used monitor and a Pi you have lying around can cut the cost in half. These typical US prices come from published 2026 build guides, checked November 8, 2026.
| Part | Budget build | New-parts build |
|---|---|---|
| Raspberry Pi 5, 2GB board | $77.50 | $77.50 |
| MicroSD card, power supply, cables | $25 | $40 |
| Monitor, 24-inch | $0–$50 used | $100–$150 new |
| Two-way mirror, 18 x 30 inches | $40–$70 acrylic | $70–$100 glass |
| Frame wood, paint, hardware | $20 | $50–$80 |
| Total | About $150–$270 | About $320–$450 |
The Raspberry Pi 5 2GB board lists at $77.50 on Raspberry Pi’s official price list, after the October 1, 2026 price rise announced by Raspberry Pi. A 1GB Pi 5 lists at $45, but the 2GB board is the safer pick for a mirror that runs all day. One detailed 2026 build guide put its 24-inch build at about $270 with a used monitor and about $420 with new parts, including a $70 two-way mirror pane. Another guide put a typical build at $150 to $300. Your total will land somewhere in that range, and it stays far below a ready-made smart mirror, which often costs $1,000 or more.
7 Mistakes That Ruin a Smart Mirror Build
Most failed builds fail on the same few mistakes. Avoid these and your mirror will work the first time.
- Using a regular mirror. A normal mirror blocks all light, so the display can never shine through. You need two-way glass or acrylic, full stop.
- Buying a dim monitor. Below 300 nits, the text fades into the reflection. Check the brightness spec before you buy, and test the monitor at full brightness behind the mirror.
- Leaving a gap between the screen and the glass. Even a small gap lets light leak around the monitor edges and breaks the illusion. The screen must sit flat against the mirror.
- Skipping the black backing. Without a black board behind the monitor, room light leaks in from behind and washes out the display.
- Forgetting ventilation. A sealed box cooks the Pi and the monitor. Vent slots at the top are not optional.
- Mounting the Pi where you cannot reach it. You will need the microSD slot again. If the Pi sits buried behind the monitor with no access, every fix means taking the mirror off the wall.
- Cramming the screen with widgets. A mirror covered in modules is a bad TV, not a mirror. Keep the middle clear and show only what you check each morning.
What to Add Next
Once the basic mirror runs well, the fun upgrades begin. Add one at a time, and make sure each one still works a week later before you add the next.
- Motion sensor: a PIR sensor wakes the display when you walk up and sleeps it after a minute of no movement. It saves power and stops the mirror glowing all night.
- Touch: an infrared touch frame over the mirror adds swipe and tap control. It needs a thin mirror panel, so plan it before you order the glass.
- Voice control: a microphone and a voice assistant module let you ask for the weather or turn on the lights without touching anything.
- Face recognition: a small camera behind the mirror can show a different calendar for each person in the house. It needs a camera module and the face-recognition module, and it works best with a Pi 5.
- Home Assistant dashboard: instead of the default widgets, show a Home Assistant dashboard in the mirror. It can show whether the garage door is open, the dryer is running, or the front door is locked — the kind of thing you actually check on your way out.
Related Guides
If you liked this build, these guides help with the next steps. A WiFi plug lets you schedule the mirror and control it from your phone, and our timer plug guide shows the simplest way to switch the mirror on and off automatically.
Frequently Asked Questions
How much does a DIY Raspberry Pi smart mirror cost?
A typical build costs about $150 to $300 with a used monitor, or about $270 to $450 with new parts. The Raspberry Pi 5 2GB board lists at $77.50, a two-way mirror pane runs about $40 to $100 depending on size and material, and frame wood and hardware add about $20 to $80. A ready-made smart mirror often costs $1,000 or more.
Can I use a regular mirror instead of two-way glass?
No. A regular mirror blocks all light, so the display behind it can never shine through. You need a two-way mirror or two-way acrylic, which reflects light from the front and lets the screen’s light through from behind. Mirror window film on plain glass is the cheapest working substitute.
What size monitor should I use for a smart mirror?
The most common sizes are 24-inch and 27-inch monitors. A 24-inch monitor in portrait mode gives a visible area of about 38 by 68 cm, and a 27-inch gives about 44 by 78 cm. Match the monitor to your wall space, then order the two-way mirror to cover the monitor’s screen with about 2 cm of overlap on each side.
Does MagicMirror2 work with a Raspberry Pi Zero?
Only in server mode, where another device renders the display. The Pi Zero is too slow to run the full-screen MagicMirror² app — the interface takes two to three minutes to load and animations stutter. Use a Raspberry Pi 4 or Pi 5 for a smooth mirror, with 2GB of RAM as the minimum.
How long does it take to build?
For a beginner, expect 6 to 10 hours spread across a weekend: a few hours for the frame, an hour or two for the software, and the rest for mounting and testing. Builds with touch, voice control, or face recognition take longer. Running the mirror for a full test week before you call it done is worth the wait.
Build the mirror in this order: pick the spot, buy the monitor and the mirror to match, build the frame, install the software, then hang it and test it for a week. If you get stuck, the MagicMirror² community forum has an answer for almost every error message you will see. Your hallway is about to get a lot smarter — and it will still be a mirror when the screen is off.
Note: this project involves mains-powered monitors and wall mounting a heavy object. Unplug the monitor before you open it or remove its casing, and never cut or splice a power cord. If you are unsure about the wiring or the wall fixings, ask a qualified electrician or handyman for help.








