The ratio of male: female hatch on domestic chicken eggs is almost 50:50. There are several sex determination methods you can use, depending on whether the fertilized egg is incubated or not.
If incubated, cytogenetic or hormonal analysis is possible. If un-incubated, could be by morphometric, hormonal, or molecular analysis. So far, flow cytometry of cellular DNA derived from peripheral blastoderm cells of not incubated eggs is considered the reliable one.
I recommend this article (https://doi.org/10.1017/S0043933908000111), it is quite good at reviewing existing methods.
In the chicken and other birds, sex is determined by a ZZ:ZW sex chromosome system. ... While the genetic trigger for sex determination in birds remains unknown, some promising candidate genes have recently emerged. The Z-linked gene, DMRT1, supports the Z-dosage model of avian sex determination Rafea M.T Khaleel
It is best and easier than differentiate the sex of chicks after hatching we can hatches only females eggs if we want layers or males if we want broiler