Source: Dungeon Master's Guide

Weapon (Any Simple or Martial), Uncommon (+1), Rare (+2), or Very Rare (+3)

You have a bonus to attack rolls and damage rolls made with this magic weapon. The bonus is determined by the weapon’s rarity.