First off, was 1.040 your OG, or the gravity it is currently? Second, finishing gravity depends on a lot of factors, most significantly your yeast. Without know what yeast you used and what your recipe was it is very difficult to answer your question.
Post your full recipe and we'll be able to help a bit more.