You asked
Nikon af s 24mm f 1 4g ed vs nikon af s 24mm f 1 8g ed?
Both are 24mm primes for Nikon F mounts on full frame, with autofocus and no stabilisation. They fit the same cameras, so the choice comes down to aperture.
The Nikon AF-S 24mm f/1.4G ED gathers about twice as much light as the f/1.8, which matters indoors, at night, or anywhere you want a softer background. On APS-C it gives roughly the depth of field of f/2.1.
The Nikon AF-S 24mm f/1.8G ED is the one I'd pick if you mostly shoot in daylight and don't need the extra speed. On APS-C it behaves like about f/2.7.
If low light or background blur matters to you, go with the f/1.4. Otherwise, the f/1.8 covers the same ground for less light.
Written by Claude from this site's pages.