It is against the law in the United States for employers to discriminate against an employee based on their gender or sex.
In fact, there are two laws that forbid gender discrimination: the Equal Pay Act of 1963 and the Civil Rights Act of 1964. Title VII of the Civil Rights Act prohibits discrimination based on the gender of the employee or prospective employee. The Equal Pay Act prohibits wage discrimination based on gender, saying that men and women should get paid the same for similar or equal work.
These laws cover all terms and conditions of a person’s employment, such as hiring, promotions, terminations, compensation and how they are treated on the job.