The silicon valley is insanely expensive; other places in California have more reasonable costs of living. In my hometown (Sacramento), $40k/year can buy you a modest house and a comfortable lifestyle. In San Jose (where I live now), you'd better be making at least double that (for a modest home).