Books about
Magic Squares
at Amazon.Canada


Amazing Math Whiz

products available:

Buttons, Magnets,
t-shirts, Tote bags,
Teddy bears, & more

Books about Magic Squares at Amazon.com

Be sure to visit the
Magic Squares Main Menu
for other topics including Irregular Squares, Algebraic Squares and more.

Other 4N+0 Magic Square Sizes:
Detailed Directions for: 4x4 * 8x8 * 12x12 *
and many more examples
* 16 * 20 * 24 * 28 * 32 * 36 * 40 * 44 * 48 * 52 * 56 *
* 60 * 64 * 68 * 72 * 76 * 80 * 84 * 88 * 92 * 96 *

A 40x40 Magic Square

Scroll down to see a magic square
in which all rows, columns, and both diagonals
add up to the same magic sum (32020)

A Magic Square is a square of numbers in which every row, every column, and both diagonals add up to the same number. This number is often called the magic sum. The 40 by 40 magic square shown below has a magic sum equal to 32020.

Though magic squares can be made with non-consecutive and non-regular sequences, they are usually seen made up of consecutive numbers, possibly because it is harder to be consecutive.

The method described below can be used to create all 4N+0 (multiple-of-four) magic squares. This is just one method for creating magic squares, there are many other methods, and many-many-many magic squares to be found.

Read more about Magic Squares

If you'd like to read more about magic squares, click one of these links to look for books about Magic Squares at Amazon.com, at Amazon.canada, and at Amazon.co.UK.

Books about
Magic Squares
at Amazon.co.UK


Support Our Site
by purchasing our
Amazing Math Whiz
products

and other
Amazing Messages



How to Create a 40x40 Magic Square
with a Magic Sum of 32020

The method described on this page can be used to create 4x4, 8x8, 12x12, 16x16 and larger 4N+0 magic squares

Steps:

  1. Draw a 40x40 blank grid and color in the two main diagonals.
  2. Also, color in the two main diagonals of each 4x4 box within this 40x40 square.
  3. Starting in the top left corner, moving left to right through the rows, count the squares, 1, 2, 3, 4, but only write down the numbers you say when you get to one of the colored in squares. If you do this properly, you will write 1 in the top left corner and write 1600 in the bottom right corner.
  4. Next, do the same thing, starting in the bottom right corner, moving right-to-left upward through the rows, again count from 1 to 1600, but this time, only write down the numbers in the non-shaded squares.

Step One: Draw a 40x40 blank grid and
shade in the two main diagonals

You don't necessarily have to shade in the squares. You could simply draw a light line that passes through these squares. You only need to be able to tell the difference between squares that are on these 4x4 diagonals and those that are not.

Step Two: Shade in all the 4x4 diagonals

If you are making a square larger than 4x4, the entire square can be visualized as a collection of 4x4 squares. Shade in the main diagonals of each 4x4 square within the big square.

If you do this correctly, by the time you are done, you will have shaded in exactly half the squares in your overall grid. If you had simply drawn diagonal lines through those squares, you would see a series of X's.

Step Three: Count the squares
(writing only on the shaded squares)

This is fairly straightforward. Starting in the top left corner, and moving left-to-right through each row, count the squares, but only write down the numbers in the shaded squares, but remember to count all the blank squares. In the first four spaces, you would write down 1, count 2 and 3, and write down 4. Continue until you have written down the last number (1600).

Step Four: Count the squares again, counting backward,
writing into the blank squares

This time, you can either
  • Start counting backward, starting with 1600 (which you would not write down) and count downward, writing down the number whenever you come to a blank square. The last two numbers you write down would be 3 and 2 just before you get to the 1600 which you wrote down in Step Three.
  • Or, if you prefer counting upward, start with 1 in the bottom right corner and move right-to-left through each row until you get to the top left corner. Working this way, you will skip 1 (because 1600 is already written in that square), write down 2 and 3, then skip 4, etc.
We have many
Amazing Message
stores.

Click each image to see
other amazing product choices

(each product imprinted
with an actual
solvable maze puzzle



Amazing Teacher



Amazing Student



Amazing Student



Amazing Reader



Amazing Artist

See our choices @
www.mazes.com/cp



Please
Support Our Site



buy
Amazing Math Whiz
products from
our online store



Many other
Amazing Messages
are available


Please visit
www.MAZES.com/cp/
for details

A 40-by-40 Magic Square

(Magic Sum = 32020)

1159915984515951594891591159012131587158616171583158220211579157824251575157428291571157032331567156636371563156240
156042431557155646471553155250511549154854551545154458591541154062631537153666671533153270711529152874751525152478791521
1520828315171516868715131512909115091508949515051504989915011500102103149714961061071493149211011114891488114115148514841181191481
12114791478124125147514741281291471147013213314671466136137146314621401411459145814414514551454148149145114501521531447144615615714431442160
16114391438164165143514341681691431143017217314271426176177142314221801811419141818418514151414188189141114101921931407140619619714031402200
14002022031397139620620713931392210211138913882142151385138421821913811380222223137713762262271373137223023113691368234235136513642382391361
13602422431357135624624713531352250251134913482542551345134425825913411340262263133713362662671333133227027113291328274275132513242782791321
28113191318284285131513142882891311131029229313071306296297130313023003011299129830430512951294308309129112903123131287128631631712831282320
32112791278324325127512743283291271127033233312671266336337126312623403411259125834434512551254348349125112503523531247124635635712431242360
12403623631237123636636712331232370371122912283743751225122437837912211220382383121712163863871213121239039112091208394395120512043983991201
12004024031197119640640711931192410411118911884144151185118441841911811180422423117711764264271173117243043111691168434435116511644384391161
44111591158444445115511544484491151115045245311471146456457114311424604611139113846446511351134468469113111304724731127112647647711231122480
48111191118484485111511144884891111111049249311071106496497110311025005011099109850450510951094508509109110905125131087108651651710831082520
10805225231077107652652710731072530531106910685345351065106453853910611060542543105710565465471053105255055110491048554555104510445585591041
10405625631037103656656710331032570571102910285745751025102457857910211020582583101710165865871013101259059110091008594595100510045985991001
601999998604605995994608609991990612613987986616617983982620621979978624625975974628629971970632633967966636637963962640
641959958644645955954648649951950652653947946656657943942660661939938664665935934668669931930672673927926676677923922680
920682683917916686687913912690691909908694695905904698699901900702703897896706707893892710711889888714715885884718719881
880722723877876726727873872730731869868734735865864738739861860742743857856746747853852750751849848754755845844758759841
761839838764765835834768769831830772773827826776777823822780781819818784785815814788789811810792793807806796797803802800
801799798804805795794808809791790812813787786816817783782820821779778824825775774828829771770832833767766836837763762840
760842843757756846847753752850851749748854855745744858859741740862863737736866867733732870871729728874875725724878879721
720882883717716886887713712890891709708894895705704898899701700902903697696906907693692910911689688914915685684918919681
921679678924925675674928929671670932933667666936937663662940941659658944945655654948949651650952953647646956957643642960
9616396389649656356349689696316309729736276269769776236229809816196189849856156149889896116109929936076069969976036021000
60010021003597596100610075935921010101158958810141015585584101810195815801022102357757610261027573572103010315695681034103556556410381039561
56010421043557556104610475535521050105154954810541055545544105810595415401062106353753610661067533532107010715295281074107552552410781079521
10815195181084108551551410881089511510109210935075061096109750350211001101499498110411054954941108110949149011121113487486111611174834821120
11214794781124112547547411281129471470113211334674661136113746346211401141459458114411454554541148114945145011521153447446115611574434421160
44011621163437436116611674334321170117142942811741175425424117811794214201182118341741611861187413412119011914094081194119540540411981199401
40012021203397396120612073933921210121138938812141215385384121812193813801222122337737612261227373372123012313693681234123536536412381239361
12413593581244124535535412481249351350125212533473461256125734334212601261339338126412653353341268126933133012721273327326127612773233221280
12813193181284128531531412881289311310129212933073061296129730330213001301299298130413052952941308130929129013121313287286131613172832821320
28013221323277276132613272732721330133126926813341335265264133813392612601342134325725613461347253252135013512492481354135524524413581359241
24013621363237236136613672332321370137122922813741375225224137813792212201382138321721613861387213212139013912092081394139520520413981399201
14011991981404140519519414081409191190141214131871861416141718318214201421179178142414251751741428142917117014321433167166143614371631621440
14411591581444144515515414481449151150145214531471461456145714314214601461139138146414651351341468146913113014721473127126147614771231221480
12014821483117116148614871131121490149110910814941495105104149814991011001502150397961506150793921510151189881514151585841518151981
801522152377761526152773721530153169681534153565641538153961601542154357561546154753521550155149481554155545441558155941
15613938156415653534156815693130157215732726157615772322158015811918158415851514158815891110159215937615961597321600

This Magic Square was created by John Knoderer, a webmaster and computer programmer who is available to telecommute to your location. (In other words, John would be delighted to create puzzles for your website or do other amazing work for you on a contract basis.)

If you found this page useful, and especially if you printed this page to distribute to students, we invite you to send a suitable donation to John (address below) or PayPal your donation to Donations (at) Mazes.com.

You can find more of John's puzzling materials at www.MAZES.com and at www.GodLovesEveryone.org. You can reach John at Webmaster (at) Mazes.com.

Fine Print: If you print and duplicate these magic squares for classroom use or other multiple copy use, please send a payment of $(however much you think this is worth) to the author. John puts a GREAT DEAL of time into creating and posting materials to the internet for you to use (and enjoy). Your donations will help pay bills and keep new materials coming your way.

Send your donations to:

John Knoderer
www.MAZES.com
P O Box 235
Sulphur Springs, AR 72768 USA

www.MAZES.com
www.GodLovesEveryone.org
www.DriverExam.org

E-mail the webmaster: webmaster (at) mazes.com

The contents of this page are copyright 2005 by the author. However, we recognize that teachers may wish to download and use our materials with their students. We give that permission, as long as the teacher sends what they believe to be a fair donation to the author each time the material is used.