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||4.38%||4.39%|
|15 yr fixed||3.81%||3.82%|
|30 yr refi||4.39%||4.39%|
|15 yr refi||3.80%||3.81%|
Today's featured rates:
John Schnatter is Papa John. He's tied to Papa John's advertising as cheese is to pizza, but he resigned as chairman for using a racial slur. More
The European Union and Japan signed a huge free trade deal on Tuesday that covers 600 million people. More
Walmart will boost its use of Microsoft's cloud services and work with the tech firm on artificial intelligence and machine learning projects. The common enemy is Amazon. More
In 1998, Ntsiki Biyela won a scholarship to study wine making. Now she's about to launch her own brand. More
Free food and ping pong tables are fun office perks, but do they actually help with employee retention? More