The Internal Revenue Service granted a three-month tax filing and payment extension to Boston-area taxpayers and others affected by Monday’s explosions at the Boston Marathon.

The relief applies to all individual taxpayers who live in Suffolk County, Mass., including the city of Boston, the IRS said Wednesday. It also includes victims, their families, first responders, others impacted by this tragedy who live outside Suffolk County and taxpayers whose tax preparers were adversely affected. The explosions occurred on the same day as Tax Day, April 15.

“Our hearts go out to the people affected by this tragic event,” said IRS Acting Commissioner Steven T. Miller in a statement. “We want victims and others affected by this terrible tragedy to have the time they need to finish their individual tax returns.”

Under the relief announced today, the IRS will issue a notice giving eligible taxpayers until July 15, 2013, to file their 2012 returns and pay any taxes normally due April 15. No filing and payment penalties will be due as long as returns are filed and payments are made by July 15, 2013. By law, interest, currently at the annual rate of 3 percent compounded daily, will still apply to any payments made after the April deadline.

The IRS said it would automatically provide this extension to anyone living in Suffolk County. For taxpayers who live in Suffolk County, no further action is necessary to obtain this relief. However, eligible taxpayers living outside Suffolk County can claim this relief by calling 1-866-562-5227 starting Tuesday, April 23, and identifying themselves to the IRS before filing a return or making a payment. Eligible taxpayers who receive penalty notices from the IRS can also call this number to have these penalties abated.

Eligible taxpayers who need more time to file their returns may receive an additional extension to Oct. 15, 2013, by filing Form 4868 by July 15, 2013.

Taxpayers with questions unrelated to the Boston tragedy should visit IRS.gov, or contact the regular IRS toll-free number at 1-800-829-1040.