Flow over shallow cavities is used to model the flow field and heat transfer in a solar collector and a variety of engineering applications. Many studies have been conducted to demonstrate the effect of cavity aspect ratio (AR), but very few studies have been carried out to investigate the effect of cavity height ratio (HR) on shallow cavity flow behavior. In this paper, flow field structure and heat transfer within the 3-D shallow cavity are obtained numerically for two height ratio categories: HR = 0.0, 0.25, 0.5, 0.75, and 1.0 and HR = 1.25, 1.5, 1.75, 2.0, 2.25, and 2.5. The governing equations, continuity, momentum, and energy are solved numerically and using the standard (K-ε) turbulence model. ANSYS FLUENT 14 CFD code is used to perform the numerical simulation based on the finite volume method. In this study, the cavity aspect ratio, AR = 5.0, and Reynolds number, Re = 3 × 105, parameters are fixed. The cavity’s bottom wall is heated with a constant and uniform heat flux (q = 740 W/m2), while the other walls are assumed to be adiabatic. For the current Reynolds number and cavity geometry, a single vortex structure (recirculation region) is formed and occupies most of the cavity volume. The shape and location of the vortex differ according to the height ratio. A reverse velocity profile across the recirculation region near the cavity’s bottom wall is shown at all cavity height ratios. Streamlines and temperature contours on the plane of symmetry and cavity bottom wall are displayed. Local static pressure coefficient and Nusselt number profiles are obtained along the cavity’s bottom wall, and the average Nusselt number for various height ratios is established. The cavity height ratio (HR) is an important geometry parameter in shallow cavities, and it plays a significant role in the cavity flow behavior and heat transfer characteristics. The results indicate interesting flow dynamics based on height ratio (HR), which includes a minimal value in average Nusselt number for HR ≈ 1.75 and spatial transitions in local Nusselt number distribution along the bottom wall for different HRs.