A 2 by 2 Magic Square is unfortunately impossible. By the rules of Magic Squares, it needs to be filled in with numbers that are all different. However, in a 2 by 2 grid there are not enough cells to get the same sum in each row, column, and diagonal. Thus, in order to achieve it, each number has to be the same, which not allowed in a Magic Square. Anyway here's a 2 by 2 pseudo-Magic Square:
Welcome to the Magic Square Generator! A Magic Square is a grid of numbers, all different, layed out in such a way that the sum of all the numbers will always be the same for each row, column, and both diagonals. With a simple click on the button, you can now generate a Magic Square of any size you wish, and with any magical sum you wish.
When you click the button, you will be asked to provide the size of your magic square. A Magic Square is a grid of numbers, so the size refers to the amount of cells it will have in each row and column. This amount will be the same, since it's a square. Be warned that the bigger you make your Magic Square, the more time it will take to calculate it. So while it is calculating, it may appear as if nothing is happening.
Then you can provide the magical sum every row, column, and diagonal, will add up to. The program will also tell you the predicted sum. This is the sum the square would have, if it was filled with only positive whole numbers, starting with 1. We provide this number only as a guideline for you to know how big or small it could be, and decide what sum you might want. Of course you are still free to give any sum at all. I should also point out that, because the numbers are rounded to 2 decimals, the actual sum may deviate from the intended sum by a negligible fraction.
JUDITH OPDEBEECK