Capital is the amount which the proprietor or partner or shareholders put the money for doing the business.
Goodwill is based on future prospectus of the business and also based on past record and the profitability. Therefore the persons will purchase at higher price if in future the profits are more.