The paper presents an evaluation of the combined use of the HYDRUS and SWI2 packages for MODFLOW as a potential tool for modeling recharge in coastal aquifers subject to saltwater intrusion. The HYDRUS package for MODFLOW solves numerically the one-dimensional form of the Richards equation describing water flow in variablysaturated media. The code computes groundwater recharge to or capillary rise from the groundwater table while considering weather, vegetation, and soil hydraulic property data. The SWI2 package represents in a simplified way variable-density flow associated with saltwater intrusion in coastal aquifers. Combining these two packages within the MODFLOW framework provides a more accurate description of vadose zone processes in subsurface systems with shallow aquifers, which strongly depend upon infiltration. The two packages were applied to a two-dimensional problem of recharge of a freshwater lens in a sandy peninsula, which is a typical geomorphologic form along the Baltic and the North Sea coasts, among other places. Results highlighted the sensitivity of calculated recharge rates to the temporal resolution of weather data. Using daily values of precipitation and potential evapotranspiration produced average recharge rates more than 20% larger than those obtained with weekly or monthly averaged weather data, leading to different trends in the evolution of freshwater-saltwater interfaces. Root water uptake significantly influenced both the recharge rate and the position of the freshwater-saltwater interface. The results were less sensitive to changes in soil hydraulic parameters, which in our study were found to affect average yearly recharge rates by up to 13%.