The purpose of this study was to examine the relationships between the availability of community pharmacies and 4 types of market factors. A composite data set was created that linked, at the county level, data on: (1) type and number of pharmacies; (2) population characteristics; (3) payer variables; (4) health care system factors; and (5) competitive factors. In this exploratory study, secondary data were used to assess the association between the availability of community pharmacies and the influence of market factors. To assess the market influences on availability of community pharmacies, 2 regressions were performed. In 1 model, the number of community pharmacies per 10,000 population was the dependent variable, whereas the dependent variable in the other regression was the proportion of independently owned community pharmacies. The independent variables in each regression were the market factors--population characteristics, payer variables, health care system factors, and competitive variables. Squared terms were included for 8 of 15 market factors to account for nonlinearities in the relationships. Multiple market factors were correlated with both the number of community pharmacies and the proportion of independently owned pharmacies in an area. Several of the relationships were not linear and changed direction within the range of data. Counties with either a low or a high percentage of elderly people had fewer pharmacies and a lower proportion of independently owned pharmacies compared with counties with a moderate percentage of elderly people. Counties that were scarcely or highly rural had fewer community pharmacies but a higher proportion of independently owned pharmacies than counties that were moderately rural. Areas with a greater percentage of the population earning less than the poverty level had more pharmacies, especially independently owned ones. Fewer community pharmacies were found in areas with higher health maintenance organization penetration rates. The number of hospital admissions was positively associated with the number of pharmacies but negatively associated with the proportion of independently owned pharmacies. The availability of community pharmacies varies across the country. In light of the trend toward fewer independently owned pharmacies, potential problems in accessing pharmacy services could develop in certain areas, including those that are highly rural and those with a high percentage of people earning less than the poverty level. Future research and policy issues are identified.