The purpose of the study is twofold: the presentation and popularization of a scarcely used method in Hungarian sociology, the contextual analysis, on the other hand, the presentation of the effects of the cultural and social capital on high-school students' results within an OTKA 2006-2008 research project. The regression models directed the attention towards the importance of the contextual (institution-wide) effects on high-school students' results and performance. This study presents these effects by using the Davis-typology and describes them both on individual and group levels. Among the factors that explain the school success are gender, cultural capital brought from home and the students' and their parents' relational resources (in the case of the last one the author accentuates those relationships which are determined by the students' and their parents' religiousness). She comes to the conclusion that while boys' proportion in school does not have any contextual effect, the percentage of those parents who have diplomas already has an effect on the students' performance, and concerning the social capital the results are also interesting.