For retaining walls, computing these is important; but the textbooks and reference books are frequently confusing and sometimes wrong. These formulae, derived using Maple, should clear up a few things, although they’re a) not always in the format you’re used to and b) subject to the Terms and Conditions of this site.
Let’s start with a diagram and the basic Coulomb formulae, from NAVFAC DM 7.02.

It’s important for to have a nomenclature chart for any lateral earth pressure coefficient formulae.
Coulomb Active Coefficients
All angles nonzero:
Vertical Wall:
Level Backfill:
Vertical Wall and Level Backfill:
Coulomb Passive Coefficients
All angles nonzero:
Vertical Wall:
Level Backfill:
Vertical Wall and Level Backfill:
Rankine Active Coefficients
All angles nonzero (except obviously ):
Vertical Wall:
Level Backfill:
Vertical Wall and Level Backfill:
Rankine Passive Coefficients
All angles nonzero (except obviously ):
Vertical Wall:
Level Backfill:
Vertical Wall and Level Backfill: