If you have made a profit on the shares you have bought and sold (a "capital gain" )you will have to pay capital gains tax (CGT) at the rate of 18%. CGT is assessed on the aggregate net gain of the appropriate tax year, so those shares you have sold at a loss will be taken in to account.
CGT is payable on or before 31st January following the end of the of the tax year in which the gain occurred. If you only started dealing in shares in May 2009 then this is included in the tax year 09/10 (ie. from 06/04/09-05/04/2010) and is therefore payable by 31st January 2011. As long as you get your assessment return in (with the tax payable) in good time before then you will be fine.
You can complete it online yourself if you register of online-self assessment, HMRC's site is pretty good and user-friendly: http://www.hmrc.gov.uk/cgt/index.htm
There are various reliefs which you may be able to take advantage and if you share dealing history is complicated (or you derive income from a number of different sources (eg. from businesses you have an interest in, employment, savings) you may consider instructing an accountant to prepare your tax return.
I hope this answers your question, if so please kindly click "accept".
DISCLAIMER: Answers from Experts on JustAnswer are not substitutes for the advice of an attorney. JustAnswer is a public forum and questions and responses are not private or confidential or protected by the attorney-client privilege. The Expert above is not your attorney, and the response above is not legal advice. You should not read this response to propose specific action or address specific circumstances, but only to give you a sense of general principles of law that might affect the situation you describe. Application of these general principles to particular circumstances must be done by a lawyer who has spoken with you in confidence, learned all relevant information, and explored various options. Before acting on these general principles, you should hire a lawyer licensed to practice law in the jurisdiction to which your question pertains.
The responses above are from individual Experts, not JustAnswer. The site and services are provided “as is”. To view the verified credential of an Expert, click on the “Verified” symbol in the Expert’s profile. This site is not for emergency questions which should be directed immediately by telephone or in-person to qualified professionals. Please carefully read the Terms of Service (last updated February 8, 2012).