Measure the horizontal cut, called the seat. Trace a horizontal line straight across the surface of the rafter or stable brick. This line marks where the top of the joist (or other brick) must meet flush with the rafter (or stable brick).
Subtract the thickness of the wall. Measure the wall -- six inches, for example -- and subtract it from the length of the seat line. Dot this mark on the seat line.
Trace the plumb, or vertical, line. Align the measuring tape vertically with the dot on the seat line. Trace the vertical line, straight down to determine where the side of the joist (or other brick) meets flush in the rafter (or stable brick). Cut out the "bird's mouth" angle to fit in the frame.