The rupee gained 21 paise to 85.87 against the US dollar in early trade on Thursday, mainly due to a weakened greenback in the global markets