Fields and trivial ideals
A nonzero commutative ring with identity is a field exactly when its only ideals are zero and the whole ring.
Let be a nonzero commutative ring with identity. Then is a field if and only if its only ideals are and . Equivalently, every nonzero element of is a unit.
Proof idea
In a field, an ideal containing also contains , so it is all of . Conversely, if the only ideals are and , then for every , so for some .
This criterion is often paired with maximal iff quotient is a field.