This paper studies the effect of credit constraints and constraints on transfers between parents and children, on differences in labor and schooling across children within the same household, with an application to gender. When families are unconstrained in these respects, differences in labor supply or education are driven by differences in wages or returns to education. If the family faces an imperfect capital market, the labor supply of each child is inefficient, but differences across children are still driven by comparative advantage. However, if interfamily transfers are constrained so that parents cannot offset inequality between their children, they will favor the human capital accumulation of the more disadvantaged child -generally the one who works more as a child. We use our theory to examine the gender gap in child labor. Using a sample of poor families in Colombia, we conform our prediction among rural households, although this is less clear for urban households. The gender gap is largely explained by the wage gap between girls and boys. Moreover, families with the potential to make capital transfers to adult children (e.g. those with large animals), can compensate adult sons for their greater child labor and reduced educational attainment. In such families, as predicted, the male/female labor gap is greater.