If you do not have a good 90 degree square, do not despair. Even with the help of an out of order square, you can easily build a wooden square to precisely measure a 90 degree angle.
All you need are two boards straightened on all sides. One of the boards, which will form the “useful” side of the square, is preferable to be thin ( yet it has to be thick enough not to bend).
Using the method described in the article about checking the accuracy of a square, I draw the two lines. If they do not overlap on their entire length, you will need to determine the perpendicular line between them and after that you can build your own square.
By measuring the distance between the two lines and dividing it into two, you will find the point where the correct line of the new wood square must end. In my case, it was two millimeters, so the point would be midway, 1 millimeter across from both lines.

I placed the thin beech wood piece along the newly drawn line and I fixed it with glue and three screws on the base, also a piece of wood. Note that it is better to fix the first screw, the center one, after which small adjustments can be made until screwing the other two additional screws.


Once the glue has hardened, I was able to check whether I made a wood square that is truly perpendicular or not. In my case, the two stripes overlapped very well, but not perfect.

It is important to note that the better (thinner) the pencil is, the higher the accuracy of the square is.