Objectives: We present in this paper a model of the coronary circulation. This model is integrated with a model of the systemic circulation, and contains models for oxygen supply and demand. Methods: Three compartments are created: one for the right ventricle, one for the epicardial segment of the left ventricle and one for the endo-cardial segment of the left ventricle. The model was implemented in the Java programming language and contains a visual representation of the left and right ventricles which beat in real time. Color shading is used to represent the partial pressure of oxygen in the segments. A multitude of model parameters can be changed to simulate different scenarios. Results: The output of the model was characterized under different conditions and the results verified by clinicians. Conclusions: Educational models of human physiology can be very useful for a more indepth understanding of complete physiologic systems. The models must however have enough complexity, interaction with other systems, and realism to show the concepts being taught.