Google Kiddie Tax.
This tax rule is to prevent parents shifting capital gains to their children's 0% capital gain tax bracket.