UPS trucks at the UPS Worldport facility in Louisville, Kentucky.

United Parcel Service delivered quarterly earnings that surpassed analysts' expectations on Tuesday, as improved margins offset a slight drop in revenue.

After the earnings announcement, the company's shares rose in pre-market trading. (Get the latest quote here.)