Context. Photochemical escape of hot atoms is crucial to the long-term evolution of the Martian climate. For atomic C and N, photochemical escape is primarily driven by photodissociation (PD) of CO and N2. Aims. Combining the Mars Atmosphere and Volatile Evolution (MAVEN) measurements of atmospheric neutral densities and solar EUV/X-ray irradiance, we perform a state-of-the-art analysis of atomic C and N escape on Mars. Methods. For each MAVEN orbit, we calculated the hot C and N production rates in the dayside Martian upper atmosphere via PD, from which the escape rates are estimated using a simplified technique to parameterize the respective escape probabilities taking into account multiple collisions with ambient neutrals. Results. The mean C and N escape rates are 1 × 1024 s−1 and 9 × 1024 s−1, appropriate for low to moderate solar activity conditions, and thermospheric PD makes a larger contribution to the total N escape than to the total C escape. The above differences highlight the importance of nascent energy, with more energetic nascent escaping atoms able to survive collisions with ambient neutrals more easily, thus extending down to deeper regions of the atmosphere. Solar cycle variation in C and N escape is revealed by our analysis, whereas solar zenith angle variation is absent for both species. These results could be explained by the fact that the production of nascent escaping atoms responds to varying solar illumination angle at low altitudes where the escape probability is negligible, but responds to varying level of solar EUV/X-ray irradiance at high altitudes where the atmosphere is essentially collisionless.