Ma · Mathematics

What Can Be the Last Digit of a Fourth Power?

Published By the 9to5Science editorial team

At a glance

  1. 1. Use the last digit

    A number and its last digit have the same value modulo 10, so only digits 0 through 9 need checking.

  2. 2. Raise each digit

    Compute the fourth power of each possible last digit and keep only the last digit of each result.

  3. 3. List the outcomes

    The possible last digits are 0, 1, 5, and 6; examples show that each one can occur.

The phrase “right digit” usually means the last digit in base 10. For any natural number nn, the last digit of n4n^4 is one of 0, 1, 5, or 6. No other final digit is possible.

The key is that a number’s fourth-power last digit depends only on the number’s own last digit. So you only need to check the ten possible last digits, from 0 to 9.

Why only the last digit matters

If nn ends in the digit rr, then nn differs from rr by a multiple of 10. In modular arithmetic, that is written n≡r(mod10)n \equiv r \pmod{10}. Raising both sides to the fourth power preserves the congruence:

n4≡r4(mod10).n^4 \equiv r^4 \pmod{10}.

Therefore, n4n^4 and r4r^4 have the same last digit. For example, any number ending in 3 has a fourth power ending in the same digit as 34=813^4=81, namely 1.

Check the ten possible endings

The table lists the last digit of r4r^4 for every possible final digit rr of the original number.

Last digit of nnLast digit of n4n^4
00
11
26
31
46
55
66
71
86
91

For instance, 24=162^4=16 ends in 6, and 84=40968^4=4096 also ends in 6. The table’s distinct outcomes are exactly 0,1,5,60,1,5,6.

A shorter way using perfect squares

A fourth power is the square of a square: n4=(n2)2n^4=(n^2)^2. The possible last digits of a square are 0,1,4,5,6,90,1,4,5,6,9. Squaring each of those possible endings gives:

Last digit of n2n^2Last digit after squaring again
00
11
46
55
66
91

This gives the same set of fourth-power endings: 0,1,5,60,1,5,6. The approach is handy if you already know the last-digit pattern for squares, though checking all ten digits is the most direct proof.

Worked examples

Take n=37n=37. Its last digit is 7, and the table says a fourth power of a number ending in 7 ends in 1. Indeed, 372=136937^2=1369, so 374=1369237^4=1369^2 ends in the same digit as 92=819^2=81: 1.

For a number ending in 4, the fourth power ends in 6. For example, 142=19614^2=196, and squaring a number ending in 6 gives a number ending in 6; hence 14414^4 ends in 6.

The four listed outcomes are all attainable. Taking n=10,1,5,n=10,1,5, and 22 gives fourth powers ending in 0, 1, 5, and 6, respectively. Thus the list is not merely a set of possible outcomes—it is the complete set of outcomes that actually occur.

Common mistakes

  • Checking only a few sample numbers: A handful of examples may suggest a pattern but cannot rule out an untested last digit. Check all ten residues, or use a complete argument based on square endings.
  • Confusing square endings with fourth-power endings: Squares can end in 4 or 9, but fourth powers cannot. Squaring those endings again gives 6 and 1.
  • Thinking every input gives every listed result: Each individual number has just one fourth-power last digit. The set describes the outcomes across all natural numbers.
  • Forgetting the base: These statements concern ordinary decimal notation, which is base 10. In another base, the possible final digits can differ.

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.