It depends on what you gave up. If you gave up something that is gravely sinful then yes it is a mortal sin. If you gave something up that isn’t sinful, then no it is not a sin. If you fail in your Lenten penance don’t be discouraged and don’t give up!
DISCLAIMER: Catholic Answers has turned over the archive to Catholic-Questions.org and no longer owns, manages, or moderates the forums. For additional apologetics resources please visit www.catholic.com.