There are currently 5 states that offer legal online poker for real money in the United States New Jersey, Nevada, Pennsylvania, Michigan, and Delaware.
California Penal Code 330 PC prohibits gambling, also called gaming, by the use of a banking or percentage game. That said, it is still lawful in California to play social poker games and other games of chance, skill, and strategy involving individual bets.