The Greek government has requested a new bailout deal from the eurozone.
Greece is now just hours away from a deadline to repay â‚¬1.6bn (Â£1.1bn) to the International Monetary Fund.
After seeing sharp falls on Monday, the Dow Jones rose 23 points, or 0.1%, to 17,619. The S&P 500 index gained five points, or 0.3%, to 2,063.
The tech-focused Nasdaq index climbed 28 points, or 0.6%, to 4,986.
Among individual stocks, shares in ConAgra Foods rose 0.67% after company said it would exit its private label foods business.
General Electric shares fell 0.26% after it sold its European private equity financing business to a unit of Japan's Sumitomo Mitsui Banking Corp for about $2.2bn.
(Close): Stocks on Wall Street closed up slightly as investors followed talks between Greece and its creditors.