How did it crack? Sitting with the phone in your back pocket? Dropped?
If you purchased the $199 option of AppleCare+ with your phone, it will cost you $29 to have the screen replaced. You can do that twice. After that, it's the full charge of whatever the cost is to replace a screen.
Every iPhone comes with one year of hardware repair coverage through its limited warranty and up to 90 days of complimentary support. AppleCare+ for iPhone extends your coverage to two years from the original purchase date of your iPhone and adds up to two incidents of accidental damage coverage, each subject to a service fee of $29 for screen damage, or $99 for any other damage, plus applicable tax. In addition, you’ll get 24/7 priority access to Apple experts by chat or phone.