Medicaid is financed by both the federal and state governments. The federal government provides a matching payment to states based on their per capita income, while states contribute a portion of their own funds.