The 21-year-old, who can play either midfield or defence has previously worked with Stanley boss John Coleman at Rochdale and will join up with him again for the 2015/16 campaign.
“I signed Matty from Blackburn for Rochdale so I know what I am getting,” Coleman told the club’s official website. “He is an aggressive, keen, honest and hard-working player who again fits the bill of what we want at this club.
“He is another player who has a chance back in the Football League and will be confident he can take it.”
Pearson has spent the last two seasons at Conference side Halifax and is looking forward to another crack at the Football League.
“I am delighted to sign for Accrington,” said Pearson. “I have had a look around and it’s great that the gaffer is giving me this opportunity.
“I can’t wait to meet up with my new team-mates and get going now.”