The magnitude-redshift relation in a cosmological model with a local void is investigated, corresponding to the recent observational evidences that we are in a local void (an underdense region) on scales of 200–300 Mpc. It is already evident that the accelerating behavior of high-z supernovae can be explained in this model, because the local void plays a role similar to the positive cosmological constant. In this note the dependence of the behavior on the gaps of cosmological parameters in the inner (low-density) region and the outer (high-density) region is shown.