The migration pathways of hydrous fluids in the mantle wedge are influenced by the compaction of the porous mantle matrix, which depends on the matrix permeability, fluid viscosity, and fluid density. Experimental studies show that when fluids are interconnected, the permeability depends on mineral grain size and porosity, the latter of which depends on the amount of fluids introduced into the system (fluid influx). Here, we investigate the role of fluid influx, fluid viscosity, and fluid density in controlling fluid migration in the mantle wedge, using a 2-D numerical model accounting for the effects of grain-size variation and matrix compaction. Our models predict that fluid influx and fluid viscosity are key controls on fluid pathways, while fluid density plays a secondary role. Temperature dependence of fluid viscosity promotes downdip drag of fluids at the base of the forearc mantle toward the subarc region. High fluid influx at postarc depths promotes updip flow near the base of the mantle wedge, guiding the fluids arcward. The model that is applied to northern Cascadia predicts upward fluid migration focused beneath the arc but cannot explain high electrical conductivity observed slightly west of the upward fluid migration. We estimate the amount of hydrous melt that can be produced in the mantle wedge using calculated fluid distributions. Up to a few percent partial melting is predicted in a relatively small region in the core part of the subarc mantle wedge in most subduction settings, including northern Cascadia, and beneath the backarc in old-slab subduction zones.