how old do i have to be to publish a book
It's okay to publish a book at any age. If it is a good book (or at least good enough.) Worse come to worse, if you can't publish at age 13, you can try again at age 18 or age 23. A famous writer, Pearl S. Buck published her first book at age 10, I believe.