NEW YORK (CNNMoney.com) -- Oil prices showed modest gains Tuesday as the latest news on the housing market helped bolster the stock market and boosted demand for oil.
What prices are doing: Crude for May delivery closed up 31 cents to $81.91 a barrel.
What's moving the market: Prices inched higher after a report on existing home sales helped push the stock market to new 18-month highs.
The National Association of Realtors said sales of existing homes slipped in February on a month-over-month basis. The decline wasn't as bad as economists had anticipated, helping lift sentiment.
That helped push the Dow Jones industrial average (INDU) higher in late-afternoon trading.
But gains were muted by continued uncertainty over Greece's debt woes, pushing the dollar higher against the euro. A stronger dollar makes crude, which is priced in the greenback, more expensive for foreign investors. This, in turn, puts downward pressure on demand and prices.
What analysts are saying: Despite steady upticks in the stock market, worries about global economic growth will continue to undercut support for oil in the near term, analysts say.
"We're going to be stuck in this $78 to $82 a barrel trading range for the next couple months until the market sees some definitive news on the economy," said Gianna Bern, president of Brookshire Advisory and Research, Inc.
And traders remain unwilling to place big bets ahead of a weekly inventory report from the U.S. Department of Energy due out Wednesday.
According to research firm Platts, crude inventories are expected to have risen by 1.67 million barrels last week, which implies lower demand. After several weeks of builds in inventory, another will be "bearish for the markets," said Bern.
Looking ahead: Although crude inventories are a major concern for investors looking for growing demand, many analysts are keeping a close watch on gasoline prices, which are up 45% from last March and still rising.
"Gasoline has been going gang busters. We're experiencing an earlier than normal ramp up in prices," said Bern. Higher gas prices could put pressure on consumer spending and stifle the economic recovery.
The national average price for a gallon of regular unleaded gasoline fell to $2.816, essentially flat compared to the previous day's price of $2.820, according to motorist group AAA.
Still prices are below the record high of $4.114 a gallon that AAA reported on July 17, 2008.
|Overnight Avg Rate||Latest||Change||Last Week|
|30 yr fixed||3.80%||3.80%|
|15 yr fixed||3.02%||3.02%|
|30 yr refi||3.78%||3.78%|
|15 yr refi||3.00%||3.00%|
Today's featured rates:
A federal judge says Ivanka Trump must give a deposition in a lawsuit brought against her by an Italian shoemaker claiming her fashion label copied its designs. More
Orlando Lopez's parents brought him to the U.S. seeking the American Dream, but he didn't find true happiness until after he was deported to Mexico. More
You'll still see ads in Gmail but they won't be inspired by your emails. More
In 1998, Ntsiki Biyela won a scholarship to study wine making. Now she's about to launch her own brand. More
The average guest at a wedding last year spent $888 per wedding, according to a study from the Knot. For those in the wedding party, the price of being a stand-up friend was over $1,000. More