On the basis of sex is a American biographical legal drama film based and inspired by the true story of a young Ruth Bader Ginsburg who faced numerous obstacles in her fight for equal right for women throughout her career.