Sex allocation theory predicts that parents should adjust investment in sons and daughters according to relative fitness of differently sexed offspring. In species with female preference for highly ornamented males, one advantage potentially accruing to parents from investing more in sons of the most ornamented males is that male offspring will inherit characters ensuring sexual attractiveness or high-quality genes, if ornaments honestly reveal male genetic quality. Furthermore, in species where extra-pair fertilizations occur, offspring sired by an extra-pair male are expected to more frequently be male than those of the legitimate male if the latter is of lower quality than the extra-pair male. We investigated adjustment of sex ratio of offspring in relation to ornamentation of the extra-pair and the social mate of females by direct manipulation of tails of male barn swallows Hirundo rustica. Molecular sexing of the offspring was performed using the W chromosome-linked avian chromo-helicase-DNA-binding protein (CHD) gene while paternity assessment was conducted by typing of hypervariable microsatellite loci. Extra-pair offspring sex ratio was not affected by ornamentation of their biological fathers relative to the experimental ornamentation of the parental male. Experimental ornamentation of the parental males did not affect the sex ratio of nestlings in their broods. Female barn swallows might be unable to bias offspring sex ratio at hatching according to the quality of the biological father. Alternatively, fitness benefits in terms of sexual attractiveness of sons might be balanced by the cost of compensating for little parental care provided by highly ornamented parental males, if sons are more costly to rear than daughters, or the advantage of producing more daughters, if males with large ornaments contribute differentially more to the viability of daughters than sons.