How do consumer credit markets affect the allocation of workers to firms, output, and labor productivity? We address this question in two steps. First, we use new microdata to estimate empirical elasticities of job search patterns to credit. Second, we estimate our novel theory of sorting under risk aversion to match these elasticities, and then we conduct aggregate counterfactuals. Empirically, we show that an increase in credit limits worth 10% of prior annual earnings allows individuals to take 0.33 weeks longer to find a job. Conditional on finding a job, they earn 1.85% more and work at higher paying firms. We also find that young and high-utilization individuals are more responsive to credit. Theoretically, we integrate risk aversion and borrowing into a model with worker and firm heterogeneity. We estimate the model to match our new empirical elasticities, and we then measure how the credit expansion from 1964 to 2004 affected sorting and output. Sorting improves as credit expands since constrained workers – in particular constrained, young, high human capital workers – find more capital-intensive jobs.