The idea is very simple. To distinguish between the mode system is currently running in we provide a mode bit.
When the value of mode bit is 0 it is in kernel mode. And when it is 1, the system is said to run in user mode.
Reference-
Galvin, Chapter 1, page no-22, 9th Edition.
I hope it helps.