Measure the width of the doorway at the top.
Mark a piece of trim with the measured width of the doorway plus half an inch.
Slide the trim under the blade of the miter saw so that the blade is on one of the marks. Turn the blade to point 45 degrees inward and cut the trim. Repeat on the mark on the other side of the trim.
Position the trim on the top of the door’s opening so that the mitered ends line up with the corners of the door. There should be an extra quarter inch on each side of the trim, extending past the door casing. Secure the trim by nailing it in every foot along both the top and bottom of the piece of trim.
Measure the door vertically.
Mark a piece of trim with the measured height of the doorway, adding half an inch.
Slide the trim under the miter blade, lining the blade up with one of the marks. Cut the top part of the trim at a 45-degree angle. Cut the bottom part of the trim straight across.
Position the trim on the side of the of the door opening so that the mitered end lines up with mitered end of the top piece of trim. As in Step 4, there will be an extra quarter inch extending past the casing. The two mitered pieces should form a 90-degree angle when placed together. Secure the trim by nailing it in every foot along both sides of the piece of trim.
Measure, cut and install the second vertical piece of trim just as the first one was measured, cut and installed.