Get an external enclosure supporting USB 3.0. Install the SSD into the enclosure and connect it to the computer. You should be alerted that the external disk is not yet initialized. Do the following:
Drive Partition and Format - El Capitan or Later
- Open Disk Utility in the Utilities' folder.
- After Disk Utility loads select the drive (out-dented entry with the mfgr.'s ID and size) from the side list.
- Click on the Erase tab in the Disk Utility toolbar. A panel should drop down.
- In the drop down panel set the partition scheme to GUID. Set the Format type to APFS (SSDs only) or Mac OS Extended (Journaled.)
- Click on the Apply button and click on the Done button when it is activated.
Upon completion do the following to clone the HDD to the new SSD:
Clone El Capitan and Later using Disk Utility
- Restart the computer and at or before the chime press and hold down the Command and R keys until the Utility Menu appears.
- Select Disk Utility from the Utility Menu then press the Continue button.
- Select the destination volume from the left side list. The volume will be indented below the Container entry.
- Select Restore from the Edit menu of Disk Utility. A panel will drop down.
- Select the source volume from the drop down menu in the panel. This is your HDD's "Macintosh HD" entry or whatever you have named it.
- Double-check you got it right, then click on the Restore button.
- When the copy is completed you should see a Done button. Click on it.
- Reboot the computer from the SSD to assure it works.
Destination means the external SSD. Source means the internal startup HDD.
Boot Using OPTION key
- Restart the computer.
- Immediately at or before the chime press and hold down the "OPTION" key.
- Release the key when the Boot Manager screen appears.
- Select the disk icon of the SSD.
- Click on the arrow button under the drive icon.
If all is well, remove the SSD from the enclosure. Remove the HDD from inside the computer and replace it with the SSD. You can put the HDD into the external enclosure so you can transfer your files to the SSD.
I would recommend getting the SSD and enclosure from OWC. They also sell the tools you will need to work on your laptop. If you have an optical drive in your computer that you rarely ever use then get OWC's Data Doubler kit to replace the optical drive with the HDD you replaced. The kit includes the bracket, tools, and instructions.
How to use an SSD with your HDD
If you are going to use an SSD as a boot drive together with your existing HDD as the "data" drive, here's what you can do. The following assumes you have an installed and working system on the HDD.
After installing the SSD you will need to partition and format the SSD using Disk Utility. Then, install OS X on the SSD. After OS X has been installed boot from the SSD. Use Startup Disk preferences to set the SSD as the startup volume.
Open Users & Groups preferences. Click on the lock icon and authenticate. CTRL- or RIGHT-click on your user account listing in the sidebar and select Advanced Options from the context menu. You will see a field labeled "Home dir:" At the right end you will see a Change button. Click on it. In the file dialog locate the Home folder now located on the HDD (HDD/Users/account_name/.) Select the folder, click on Open button. Restart the computer as directed. When the computer boots up it will now be using the Home folder located on the HDD.
Another more technical method involving the Terminal and aliases is discussed in depth here: Using OS X with an SSD plus HDD setup - Matt Gemmell. This is my preferred approach because I can select which of the Home's folders I want on the HDD and which I don't want. For example, I like to keep the Documents and Library folders on the SSD because I access their content frequently.
Be sure you retain the fully bootable system on your HDD in case you ever need it.