What kind of object is the kernel of a ring homomorphism?

Yes. Instead of taking the kernel you can take the kernel pair. In general, the kernel pair of a morphism is an attempt to recover a universal equivalence relation compatible with that morphism. If $f : R \to S$ is a morphism, then the kernel pair of $f$ is the pullback of the diagram $R \xrightarrow{f} S \xleftarrow{f} R$. In the case of rings, if $f$ has kernel $I$ then this is the ring

$$\{ (r_1, r_2) \in R \times R : r_1 \equiv r_2 \bmod I \}.$$

This sort of object is called a congruence in universal algebra, and should be thought of as an equivalence relation internal to the category of rings. One way to state one of the isomorphism theorems is that $f$ is surjective iff it is the coequalizer of the two projections from its kernel pair to $R$, or equivalently iff it is an effective epimorphism.

For groups, abelian groups, and rings, the ability to take inverses (in the third case, for addition) turns out to imply that you can replace the study of kernel pairs with the study of kernels (in the third case, at the price of leaving the category, as you noticed). But when you can't do this you really need to look at kernel pairs; for example if you start studying monoids or semirings.

See this blog post for a non-categorical introduction to the idea of internal equivalence relations and these three posts for variations on the relationship between kernel and cokernel pairs and various flavors of monomorphism and epimorphism. For example, with no hypotheses on the category, a morphism is a monomorphism iff its kernel pair exists and is trivial and, dually, an epimorphism iff its cokernel pair (the kernel pair in the opposite category) exists and is trivial.


A left ideal of a ring $R$ is just a left $R$-submodule of $R$. Thus, the natural category in which left ideals live is the category of left modules. The latter has a zero object and kernels can be computed as usual. If $f : R \to S$ is a homomorphism of rings, you can view $S$ as an left $R$-module via $r s := f(r) s$, so that $f$ becomes a homomorphism of left $R$-modules and the kernel of this homomorphism (in the category of left $R$-modules) is what you usually call the kernel of the ring homomorphism of $f$. Similarly we can deal with right ideals. And for two-sided ideals we work with the category of $(R,R)$-bimodules and observe that every ring homomorphism $R \to S$ induces an $(R,R)$-bimodule structure on $S$. By the way, all these definitions also work when we replace $\mathsf{Ab}$ by any abelian tensor category. For example, (quasi-coherent) ideal sheaves also fit into this picture.